LCA problem with no parent pointers. Given the root of a tree and pointers to two nodes contained in that tree, return the lowest common ancestor of the two nodes. IE, the common ancestor furthest from the root.
Intern Interview Questions
248,749 intern interview questions shared by candidates
Given a list of meeting times, which may overlap, return the minimum number of rooms required to accommodate all the meetings.
The questions were average interview questions. I can't think of a specific one that was difficult or unexpected.
4. What is the format of the floating point number? What does the following code do? Does it terminate? Float f,g; f=0; do{ g=f++; } While ((f-g)!=0);
Given an array of 1000 element, how will you find the element repeated twice in O(n) complexity
Q) How would you all values from the nodes of a given binary tree into a string and then deserialize the string and put it back in the binary tree?
Find depth of a binary tree
Reverse a linked list
Given a 5x5 board containing random characters, find all words that can be formed from consecutive adjacent (diagonals count) characters.
in an array of characters find the character that is repeated the most
Viewing 411 - 420 interview questions