Serialize (flatten) and de-serialize a binary tree. First describe the approach, then write the code.
Software Engineer Asc Interview Questions
419,736 software engineer asc interview questions shared by candidates
First phone screen: Print all the nodes of a tree in reverse level order (ie print all the nodes at the leaves first, then print the nodes on the level above the leaves, and then eventually work your way to the top).
- Find k-th element from the end of the singlylinked list in single pass?
Given 2 files, each line in the files is considered an entry. Print the entries that are duplicated in both files such that the number of repeated entries are minumal. Example: File 1: aaa aaa bbb bbb bbb ccc File 2: aaa aaa aaa bbb bbb result: aaa aaa bbb bbb
Given an array of integers, all but one of which appears an even number of times, find the one integer which appears an odd number of times.
Find the max ;length palindrome in an input string.
There is an array of numbers, containing the integers 1-n, how can you find the sum of the numbers in that array?
Write a function, which takes input, two sets of integers, and moves a integer from one set to another set in a way that average of both sets increases. It returns true if it successfully moved a element, false otherwise.
Pick the closest k points.
How can we store the name of street in a map service? Because street names have characters in common.
Viewing 1951 - 1960 interview questions