How would you desgin facebook, use the data struct to show the social network and find out the people that close to you but your relation are stranger (white board coding)
Sr Developer Interview Questions
98,162 sr developer interview questions shared by candidates
what is the best way to sort millions of records
Code a FizzBuzzRazz test. If it's divisible by 3 print "Fizz" if it's divisible by 5 print "Buzz" if it's divisible by 7 print "Razz" if it's divisible by 3 and 5 print "FizzBuzz" if it's divisible by 3 and 7 print "FizzRazz" if it's divisible by 5 and 7 print "BuzzRazz"
Given a chessboard determine if a given black or white piece in a cell is alive / dead. An item is defined alive if it has at least one non-opposite colored or blank neighbor. That was the original question. This is how it morphed over the interview: * The diagonal neighbors don't matter to determine if a piece is alive or dead. * There need not be just 16 pieces of black or white. There can be an arbitrary number of black or white pieces. * If a piece is surrounded by the opposite color in 3 sides, but the 4th side of the same color but is again surrounded by opposite color, then that's still considered dead. (why did you not say this to begin with?!) But it is alive if one of them is blank. * And while calculating the time complexity - she adds, the board can be filled with all black and say one white in the middle or vice versa. How is that a chessboard?! and why are you telling that at minute 45. If we had continued the interview wonder what other additional missing conditions about the problem she would have added that she forgot.
How would you count the 100 longest lines in a 100MB text file?
Given an array of integers, return one pair of integers that equal a particular given sum, from the array.
switch value of variables a and b, without using 3rd variable.
Almost all behavioral questions were unexpected because in other companies it is usually reserved for HR round, not technical.
Given 2 jugs, one is 3 quarts and the other is 5 quarts. Find a way to end up with 4 quarts of water.
Write the Java code to remove all HTML tags from a string.
Viewing 1031 - 1040 interview questions