Meta - Phone Screen (London) Interview E5/E6 [Passed]
Company: Meta
Role: E5/E6
Interview Stage: Phone Screen
Location: London
Year: unknown
Original Post Content:
My tax to the LeetCode.
1. Valid string - luckily lighter variant without taking care about exponent. Variant presented here
2. Find local minimum, variant of this LeetCode Find Peak Element. Sadly with curved ball where input can have repeated numbers and minimums are inclusive (>=lm<=). Worth watching this video
Experience:
1. On question one I made a huge mistake, because task was presented without any constraints. So I jumped into the coding taking care of just numbers and letters and Interviewer quickly presented test case to show me my incompetence. Please, please. Speak with your Interviewer before coding! Verify question, verify constraints, discuss even before presenting approach.. It could cost me rejection. Luckily I responded very quickly and adapted, so in next few minutes I quickly verified constraints and came with good creative test cases. I guess it saved my ass.
2. On question two after discussion I quickly came with linear approach, and I think expressed my process very clearly. What is more important I came also with binary search approach, but I didn't repeat my mistake from question one and started discussing my quick BS implementation. Together with the Interviewer we quickly verified test cases and I realized how tricky is this variant, and probably binary search is not possible and we should fall back to linear approach.
As you see I made mistakes, and still passed. I assume it's because I kept Interviewer engaged, I responded quickly to the feedback and also was ready to deeply discuss approach, not just a coding. That should be the lesson for us.
Interviewer was extremely professional and very methodic, so it made things much more easy to understand expectations. So I guess I was lucky meeting this Interviewer, he built very positive experience.
Thanks for Minmer&Summer for their fantastic job on YT channel, it's so helpful.