THINGS TO REMEMBER: Algorithms Remix
#datastructures #tree #graph #leetcode #devstudy #ruby
Things to Remember
- 80% planning, 20% implementation
- Read slowly.
- Examine assumptions and let them go. Keep an open mind.
- Resist the urge to jump to conclusions. Resist the urge to plug in a known structure or syntax even as you're reading the question.
The question is only ONE way of describing the problem. What are other ways of looking at this description?
Abstraction first, Implementation later
Understand the cases of the problem as a PROBLEM not from with the limits of the syntax you keep reaching for.
What is the problem? What am I trying to achieve?
What are my cases at each step in abstracted terms?
Questions to When Debugging
- Look at every single line and ask yourself: what am I asking the computer to do?