Facebook | Phone | Binary Tree Right Side View & Merge Sorted Arrays
Anonymous User
2458
Mar 13, 2020
Mar 14, 2020
Position: E6 generalist, SFBA
got these two questions:
- https://leetcode.com/problems/binary-tree-right-side-view/
- https://leetcode.com/problems/merge-sorted-array/ (where each array have zeroes added at the end, e.g. 12345000, the sizes can be different; do it in-place)
the interview was very rushed and i was interrupted many times, input requirements were confusing and unclear, also it seems that typos in code were as important as algorithm. used coderpad text editor with execution disabled - make sure you compile it in your head and remove typos.
Also important to explain your plan of action before coding, state the expected/worst case time & space complexity and think of edge cases.
Comments (5)


