(Phone screen questions) 1. For a given binary tree, print paths from root to all leaf nodes, one path per line. 2. Given a sequence of positive integers "seq" and an integer "total", return whether a contiguous sequence of "seq" sums up to "total". (Onsite interview questions are covered by NDA therefore can't post, but it can be said that the knowledge of data structures and handling edge cases are important for the coding interviews)
Anonymous
1. Use recursive function from the root of binary tree (print at leaf, else recurse to left and right) 2. Use hashset/hashmap to record running sum of "seq", and check if there are two elements having difference of "total"
Check out your Company Bowl for anonymous work chats.