Given a stack containing values, implement min() operation to find minimum of all the values in O(1) time. Push() and Pop() should run in O(1) as well.
Software Interview Questions
550,668 software interview questions shared by candidates
When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called.
Why is your average pointer around 8 only?
Detecting memory leaks in Java? Interprocess communication in Android? A lot of specific knowledge based questions that do not really provide good representation of someone's technical ability
Timed leetcode style questions. Rotate an array 90 degrees, implement an hashmap that allows for changing keys and updating all values.
Logical Reasoning Goal: The person to reach 50 first wins. Rules: Play with another person, say a number, and the other person can say any number upto 10 over your number.
A sends 50 robots towards B and B sends 20 robots everytime the robots meet collision occurs and for each collision the robot bounces back and goes in opposite direction.How many robots did reach A and B finally?
Given an array of n coins, determine the minimum number of flips for all coins to have the same side (all heads or all tails).
Give the type of a binary tree and an algorithm to compute its depth
I had not expected to be asked logic questions, which made me nervous. The first one was a weigh nine items on a balancing scale to find the odd one out in the fewest scale uses
Viewing 1251 - 1260 interview questions