Facebook | Phone | Binary Tree Right Side View & Merge Sorted Arrays
Company: Meta (Facebook)
Role: E6
Interview Stage: Phone Screen
Location: SFBA
Year: unknown
Original Post Content:
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 the 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.