3 ms·
Yes it does, you can open the leetcode and see for yourself. That also explains the "easy" difficulty rating. I guess you've been giving candidates a more hard
by user5994461 6y ago
Yes it does, you can open the leetcode and see for yourself. That also explains the "easy" difficulty rating.
I guess you've been giving candidates a more hardcode version of the problem, not having that constraint?
edit: nevermind, it's the other poster who was giving that problem, not you. No idea how they formulate it in their interviews.
- fractionalhare 6y agoI don't ask candidates these kinds of questions in my interviews. For a coding interview, I'd normally ask them to implement something like backend rate limiting logic for an authentication service, and continually ratchet up the complexity on each successful implementation until the end of the interview. I was asked the two sum problem in an interview once, but I forget if it had this constraint or not. This seems much more reasonable.
- zebnyc 6y agoForgive me for my ignorance, but are you looking for anything more complex than a leaky bucket algorithm + gossip protocol solution?