Skip to content

Instantly share code, notes, and snippets.

@wokalski
Created February 18, 2021 18:08
Show Gist options
  • Save wokalski/e6f1bd6b99da853b762513a2efc98449 to your computer and use it in GitHub Desktop.
Save wokalski/e6f1bd6b99da853b762513a2efc98449 to your computer and use it in GitHub Desktop.
Complex algorithms

My approach to complex programming tasks (iteration 1)

  1. Define the input
  2. Define the output
  3. Define the steps leading from the input to output in either direction
  4. Spot the weak links/hard parts
  5. Understand if the weak links can be avoided - if yes go to 3
  6. Start implementing the algorithm from the end (starting from the step which generates the output and threading back)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment