To find and return the common node of two linked lists merged into a 'Y' shape.
Development Engineer Interview Questions
37,096 development engineer interview questions shared by candidates
In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he doesn’t know anyone in the party. We can only ask questions like “does A know B? “. Find the stranger (celebrity) in minimum number of questions.
Number of 1's in binary representation of integer?
Find the deepest common ancestor of two nodes in a tree structure.
Determine if an array from 1..n has a duplicate in constant time and space.
The questions were not very difficult but you really need to have all the concepts crystal-clear and be ready to apply them successfully. One of the questions was "how to count the letters in this string:" "The quick brown fox jumps over the lazy dog";
Given an array with length n-1 which contains integers of the range 1 to n. Each element is distinct and appears only once. One integer is missing. Find the missing integer in linear time using O(1) memory. Now two integers are missing, find them out in linear time using O(1) memory. How about three?
Determine whether the binary representation of a number if a palindrome or not, code it on a white board.
The Game of Nim worded diffently.
out of 25 horses select the fastest three in minimum number of races where in each race there would be exactly five horses.
Viewing 21 - 30 interview questions