Got asked a Dynamic Programming question in Meta Technical Screening
Company: Meta (Facebook)
Role: unknown
Interview Stage: Technical Screening
Location: unknown
Year: unknown
Original Post Content:
The first question was to create a BST iterator
1) 173. Binary Search Tree Iterator
I solved the first one but had to get some hints from my interviewer, and she herself clarified the requirement clearly after sometime, (when I should have asked clarifying questions at the start) also pointed out some bugs which I was able to fix and implement.
Not only was this not in the Meta tagged list but also this is a Dynamic Programming question, when Meta clearly said they will not ask DP in the interview prep guide/Careers page. Can I ask my recruiter about this or just eat it up?
Anyways I proposed a few solutions, the first one with a frequency hashmap, then my interviewer said that does not work, then I proposed another solution using left and right indices and coded it using a sliding window kind of approach, but she said it will not work in some test cases (I should have asked clarifying questions about this but I missed the edge cases).
My code also has few bugs, which she pointed out. Not a major factor but her accent also made it a bit hard for me to understand what she was saying sometimes.
What are my chances of getting to onsite round, I feel like it is very low. Please let me know what you all think.