Hacker News new | ask | show | jobs
by unhired 2490 days 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.
1 comments

The problem sounds like they wanted you to implement a state machine, and to draw a state diagram before that.