Skip to content

Instantly share code, notes, and snippets.

@gordonmzhu
Last active June 29, 2018 19:58
Show Gist options
  • Save gordonmzhu/2dd17e94afb5f3b841c2f1e8c28cfded to your computer and use it in GitHub Desktop.
Save gordonmzhu/2dd17e94afb5f3b841c2f1e8c28cfded to your computer and use it in GitHub Desktop.
1. Read the answer and try to figure out what it does. Write it out on paper. Add notes, annotate it.
2. Run the code, see how it works, what arguments it takes, edge cases, etc.
3. Run it through the debugger, Use different arguments to test different scenarios.
4. Try replicating the function by writing out single statements in the console.
5. Be able to write the entire function on your own without looking at the solution. Could include mock interviews.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment