the mental model and format for leetcode
tags: learning leetcode programming tech-interview
content
the name of the game is communication
steps
- read question, write down requirements
- clarify input output
- clarify edge cases
- clarify assumptions
- write some tests for normal/edge cases
- write down pseudo algorithm
- write code while explaining the code
- manually executing the test