Code to get the depth of a binary tree.
Engineer Software Interview Questions
419,835 engineer software interview questions shared by candidates
the second question was a little tougher, "Write a function that checks whether a binary tree is valid or not. A valid binary tree is a tree where no child node points to any of its ancestors"
Write a function with input a list of integers and output the starting index of the longest sequence of ascending numbers e.g. 12123 -> 2 or 4567 -> 0
Difference between Heap and Stack
how to merge two sorted linklist?
Write a function to mirror a binary tree (left node to right, right to left, etc). How about very unbalance tree?
given a sorted list of integers, how would you find whether 2 integers exist that add up to a given sum?
Implement a simple load balancing algorithm in pseudo code (over the phone)
What's hashtable?
say sth about hash table.
Viewing 3181 - 3190 interview questions