reading-notes
Project maintained by mr-atta
Hosted on GitHub Pages — Theme by mattgraham
Solving Problems đ˘
1⣠The most common mistake when someone tries to solve a programming problem is they try to start writing code ASAP.
make sure to take enough time to think before starting code.
2âŁď¸ Another mistake is trying to solve all the problems the first time.
Just broke the big problem into pieces (small problems).
Simple steps for any algorithm-type programming problem:
- Read the problem completely twice
most important step
- Solve the problem manually with 3 sets of sample data.
- Optimize the manual steps.
- Write the manual steps as comments or pseudo-code.
- Replace the comments or pseudo-code with real code.
- Optimize the real code.
- 70% of our time should be spent in steps >(1-3)
How to think like a programmer
WHYđ¤ ??
- Because itâs the more effective way for problem-solving.
HOWđ¤ ??
- Plan
- âIn programming, this means donât start hacking straight away. Give your brain time to analyze the problem and process the informationâ
- Divide
- itâs important step
- break (one big problem) into sub-problems. These sub-problems are much easier to solve.
- If Stuck ?
5 Whys To
Getting to the Root of a Problem Quickly
How to Use the 5 Whys (seven-step)
- Assemble a Team
- Include someone to act as a facilitator , who can keep the team focused on identifying effective counter-measures.
- Define the Problem
- Discuss it with your team
- write a brief
- clear problem statement that you all agree with it
- Ask the First âWhy?â
- Ask âWhy?â Four More Times
- For each of the answers that you generated in Step 3, ask four further âwhysâ in succession.
- Know When to Stop
- you may reach this point before you ask your fifth âWhy?â If you do, make sure that you havenât stopped too soon
- The important point is to stop asking âWhy?â when you stop producing useful responses.
- Address the Root Cause(s)
- you need to discuss and find the solutions for the problem.
- Monitor Your Measures
Pretend Your Time is Worth $1,000/Hour and Youâll Become 100x More Productive
- âYou have very few hours here on on this earth.â
Imagine that an hour of your time is worth $1,000 , What would your life look like ??
- âBeing busy is a form of mental laziness.â -Tim Ferriss
It takes discipline to not become âbusy.â
Solving Problems
think like a programmer
5 Whys
Act like you make $1000/hr