Skip to content

Instantly share code, notes, and snippets.

@cherscarlett
Last active March 5, 2019 19:58
Show Gist options
  • Save cherscarlett/587171cfd083cf5c13c06258874e65ca to your computer and use it in GitHub Desktop.
Save cherscarlett/587171cfd083cf5c13c06258874e65ca to your computer and use it in GitHub Desktop.
// pseudocode
// create a new array for holding each language and a running sum of its size
^^^^ is this the best way to hold this data for what we are going to use it for? ^^^^
// loop through each repository
^^^^ we definitely cannot avoid this ^^^^
// loop through each language, within each repository
^^^^ can we avoid this? ^^^^ <--- we MIGHT be able to reduce complexity here
// for each language, add it to its matching entry and add the size to the running sum
^^^^ can we do this differently, avoiding a loop? ^^^^ <--- we CAN reduce complexity here
// get the sum of all of the sums of languages
^^^^ can we do this in a previous iteration? ^^^^
^^^^ cannot avoid this ^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment