Facebook | E5 | Bay area | Feb 2021 | Reject
The interview process and format of each interview, for example:
5
/ \
4 9
/ \ /
1 3 7
541 + 543 + 591 = 1675I solved using BFS like how we do level order problem (https://leetcode.com/problems/binary-tree-level-order-traversal/),
store
queue =(root,root.val) initially in queue
after poping node from queue, if it has left child add leftchid node along and append left child value to root.val and add them in queue
queue = (root.left, ((root.val*10)+root.left.val))
same for right child
add termination condition for leaf node, add number in result. Do sum at the end4. System design
System localization (Say I am opening Instagram in the African region, I should see content in the local language, How this system work end to end. How the developer will incorporate this service during development). I suck this one. The interviewer did not help much during the requirement gathering.
My overall experience is good. I am happy that I was able to solved unseen questions in 15 min with test case.
I was heavily relying on Facebook onsite but things go south this time. Mainly rejected because of system design.
Please post your thought on System localization, how would you approach it