Given a base 2 integer, give me an algorithm for detecting if it is a palindrome. What is the run time performance of this?
Software Senior Interview Questions
75,612 software senior interview questions shared by candidates
Lots and lots of behavioral questions. Think of a time in your life where you got your way, didn't get your way, impressed a customer, let somebody down. All of these will tie back to Amazon's Leadership principles, so you can prepare stories ahead of time relevant to the principles and tell them during a relevant question.
One of the interviewers asked me to implement a file system. What was in particular frustrating is that he left is so open ended as to the level of detail required, yet expected a specific answer and was unhappy that I took a different approach.
convert binary search tree into doubly link list in constant space and link list should be sorted
Removing duplicate integers from an array without using extra buffer.
What's the difference between Breadth-first algorithm and depth-first algorithm ?
* Takes a list of strings representing either operators or operands and returns * the result of a reverse-polish notation calculation on them * Sample output: * {"4", "1", "+", "2", "*"} -> ((4 + 1) * 2) -> 10 * {"5", "8", "4", "/", "+"} -> (5 + (8 / 4)) -> 7 * Supported operators are +, -, *, and / * @param ops the series of operators and operands to operate on * @return a Double equal to the result of the calculation * @throws IllegalArgumentException if ops does not represent a well-formed RPN expression * @throws ArithmeticException if the expression generates an arithmetic error, such as dividing by zero */
Find the largest rectangle area on a bar graph. Example, if you had a graph of 1,4,5,3,3,5 the answer would be 15 (3x5) which is formed by the rectangle that is 3 high and spans from position 2 (1 based) to 6.
logging, monitoring, alerting
console.log(1) setTimeout(() => { console.log(2) }, 0) console.log(3) What is the result? Explain it
Viewing 2721 - 2730 interview questions