the mental model and format for leetcode

tags: learning leetcode programming tech-interview

content

the name of the game is communication

steps

  1. read question, write down requirements
  2. clarify input output
  3. clarify edge cases
  4. clarify assumptions 
  5. write some tests for normal/edge cases
  6. write down pseudo algorithm 
  7. write code while explaining the code
  8. manually executing the test

up

down

reference