Position: SWE Intern
I was asked one easy-medium question, basically it requires two pointers solution but I could not come up with it/ It didn't clicked at that time.
Question:
Given two sorted array/list find common elements from the list.
Conditions : Repetitions allowed in both list
Similar question: https://leetcode.com/problems/intersection-of-two-arrays-ii/
I gave 4 solutions but none were close to two pointers solution which has linear TC and constant extra space. Looking back to it, I think I am the dumbest person to interview with FB till now.
Result: Rejection