Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.
Engineer Interview Questions
843,617 engineer interview questions shared by candidates
basic questions in python using loops
python question: given a two dimensional list for example [ [2,3],[3,4],[5]] person 2 is friends with 3 etc. find how many friends does each person has. note one person has no friends. SQL question: find the top 10 college/company that a average social person interacts with. something in those lines. I split the query in two. Not able to finish coding but was able to explain and write both the parts but didn't have time to test it. also had data modeling questions. on a social network website. cant give details.
A key is broken on your laptop keyboard. How do you work around it until you can get a new keyboard?
write atoi()
Use objective-c write code to return the first repeated integer from a given array, with O(n) time
If I need to make a cantilever beam 1mm thick and I only have 0.5mm sheet stock. How can I make a beam that has the same properties as the 1mm.
copy ctor, operator overloading, oops concepts, puzzles, data structures.
In Round 1, Questions were like merge two Strings in alternating manner, one question on pattern matching of 50 marks.
Write an algorithm to verify if a tree is a binary search tree.
Viewing 981 - 990 interview questions