Serialize (flatten) and de-serialize a binary tree. First describe the approach, then write the code.
Software Development Interview Questions
37,298 software development interview questions shared by candidates
Print the BST in level order
validate a binary tree
How to detect overlapping area for two rectangles
Write a function that returns the longest palindrome in a string. Not just the first one or any palindrome, but the longest. The String is a long sequence of characters, spaces included.
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.
Write a function that takes a String as a parameter. Count the number of A's in the String before you reach a C.
Write a function to turn a string into an integer and test it
Write a function to convert a number in Roman numeral form to a decimal representation.
Write a function to print out the contents of a singly-linked list in reverse order.
Viewing 361 - 370 interview questions