3 ms·
It wasn’t a LeetCode problem. I had to implement an API where each call would change the state of the application on certain conditions. I heard the problem and
by unhired 7y ago
It wasn’t a LeetCode problem. I had to implement an API where each call would change the state of the application on certain conditions. I heard the problem and clarified it on the whiteboard. I coded each function while talking and ask for clarifications.
- ju-st 7y agoThe problem sounds like they wanted you to implement a state machine, and to draw a state diagram before that.