Last active
March 5, 2019 19:58
-
-
Save cherscarlett/587171cfd083cf5c13c06258874e65ca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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