2 ms·
I wish I could help here. I have made exactly one foray into leetcode, wrote out an algorithm for a fairly easy tree traversal thing, tried to submit it and jus
by bluefirebrand 5y ago
I wish I could help here. I have made exactly one foray into leetcode, wrote out an algorithm for a fairly easy tree traversal thing, tried to submit it and just was told it went into an infinite loop.
I copied my solution elsewhere ran it, and it worked fine.
The only thing I could guess is the input wasn't what I was expecting, but I couldn't verify what input leetcode was actually giving me, so I just walked away.
The whole thing was a waste of time anyways. I still have yet to ever get a leetcode question during an interview and I've been doing this almost a decade now.
Then again, I don't try and get jobs at FAANG companies or FAANG wannabes.