Serialize (flatten) and de-serialize a binary tree. First describe the approach, then write the code.
Software Development Engineer Interview Questions
32,811 software development engineer interview questions shared by candidates
Print the BST in level order
validate a binary tree
How to detect overlapping area for two rectangles
The question was: Given a text written in some language where the alphabets are represented with 1 byte or 2 byte. But the one byte alphabets always have their MSB 1 and the 2 byte charecters always have their MSB 0. Now when at some point user presses a back space how many bytes are to be deleted to erase the alphabet?
Q: In an array that has one value for more than half of its elements, how can you find that value?
Find a duplicate integer in a list of length K with integers 1...K-1 and one duplicate. Do so in O(n) time with constant space.
How to create excel header string
Write a function that reverses the letters in each word using only one char buffer. E.g.: "I work at Microsoft" to "I krow ta tfosorciM"
Write a function to convert a number in Roman numeral form to a decimal representation.
Viewing 341 - 350 interview questions