Background: Finishing up my Ph.D.
Role: Ph.D. ML Engineer
Date: 11/12/2019
Onsite
Round 1:
Round 2:
n find the first n non confusing numbers. https://leetcode.com/problems/confusing-number-ii/Round 3:
Implement a generic queue using linked list. Implemented a queue with all edge cases covered! This question was interesting since the interviewer later asked me if i am missing something. He said my API misses lots of things like: iterator etc. I just did enqueue, dequeue, and len. He said I don't know of something called stopper object can be used to handle null case (i returned float('inf') when empty queue). He was also looking at my knowledge of tempelates. In general, in python that is not a problem due to auto-type checking.
https://leetcode.com/problems/largest-rectangle-in-histogram/ I have seen this question before so vaguely remember using monotonic stack. suggested the optimal solution with monotonically increasing stack for this question but didn't have time to code.
Round 4:
Round 5:
Thoughts: I feel i might get rejected since these days they expect you to finished coding two questions. That being said, I don't think I bombed any round so I might have a chance. In general, I felt the interviews were nothing crazt, given little more time I could've done optimal solutions of all the questions.
Any thoughts or comments appreciated.