I finished my facebook onsite. I had total of 5 rounds
1)round1 System Design: Asked to design web crawler given a root link assuming 1 billion links to crawl how do you design.I didnt do great as time was not enough but got some basic version of it. Not sure how it would get evaluated
2)round 2: 2 problems
i) Merge sorted arrays without duplicates. arr1 [1,3,3,5] [2,3,4] result should be [1,2,3,4,5]
I wrote the implementation very quick but missed handling couple of test cases
ii) Given task pairs (task, pre_req) task determine if all the task can be finished. Similar to https://leetcode.com/problems/course-schedule-ii/ Finished this one pretty quick
3)round 3: 30 minutes behavioural and 1 easy coding question in last 8 mins
question: https://leetcode.com/problems/first-bad-version/
4) System design(This probably will not get evaluated as one of the round was just for practice for interviewer)
Design an api canSee(owner_id, viewer_id). There are some privacy settings like Only me, Friends, Friends of friends,Public globally defined for user, so if someone visists some users content this method should determine whether the requesting user has access to user's content
5) Coding with 2 problems
i) Given 2 strings (numbers) add them. Something similar https://leetcode.com/problems/add-two-numbers/ but only string not LL.Asked some follow up and wasted some time to ask me to right the array reverse since i was using python array reverse
ii) https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ This one i messed it up got confused and it was given in last 10 minutes. I got the approach but could fully solve it
I think coding questions was easier than i expected but i mde some mistakes so i am not expecting any offer and it was for E5 so system design also might not be up to E5 level given i never looked at how crawler works


