HomeAbout

Algorithms

How Computer Works

You are storing a data in memory, efficiently transforming them with algorithms.

Algorithms

Algorithms are operators we can perform on different data structures and set of instructions for executing them.

Data Structures

Data structure is simply how you would store the data in computer's memory.

There are many options for storing and representing the same data.

Which data structure you use has implications on which algorithms can be used on the data.

"effective data structure yields efficient operations via efficient algorithms"

Tips

Read prompt for specific handling of edge cases.

  • Don't assume the obvious.
  • Ask clarifying questions.

Do not prematurely optimize and focus on getting to working solution first.

  • If you're writing too much, that should serve as a red flag on overcomplicating a problem.

Read test cases closely for hints to get to solution quickly.

  • Solve for one test case at a time.

Put all your transient thoughts on the checklist.

  • Create a checklist on top of the solution you are writing when you have some ideas pop up.
  • At the end of coming up with a solution, go through the checklist to see if current solution covers all edge cases.

Questions

what is the data structure of input/output (when not given)? any edge cases I should be aware of?
AboutContact