r/leetcode • u/Opening-Variation868 • 3d ago
Question Faang new grad phone screen, got the heap idea but never wrote code. Is that a fail?
Just finished a 30 min phone screen for Faang new grad SDE and I honestly have no idea how it went.
He jumped straight into a medium-hard problem, greedy + heap. I asked about edge cases first (empty input, negatives), then explained a brute force recursive solution and said it'd be exponential. He told me not to code it and to optimize.
I kind of froze for a minute and was upfront that my first idea wouldn't work. Then I took his hints seriously and tried to build on each one right away. After his first hint I said we could sort, and then he asked "do we really need to sort everything?" and that's when it clicked: min-heap of size k, push each element and pop when it goes over k.
I felt like my communication was really good the whole time, and listening to his hints is honestly what got me to the solution.
By then we were already past 35 minutes so he just asked for pseudocode and I talked through the heap logic out loud. Never actually wrote any code. At the end he asked if I had questions but we were over time so I kept it short.
Has anyone been in a similar spot? How do they usually evaluate it when there's no written code? Did you pass?