Skip to content

Instantly share code, notes, and snippets.

@cherscarlett
Last active March 7, 2019 01:56
Show Gist options
  • Save cherscarlett/436dcd7d647b18810a9126e41089191c to your computer and use it in GitHub Desktop.
Save cherscarlett/436dcd7d647b18810a9126e41089191c to your computer and use it in GitHub Desktop.
// Consider all numbers on a number line from x to y.
// Compare each number in sequence to every other number: inclusive, once.
// For x = 5, and y = 8
// d = 3
// d^2 + d = 12
// 5, 6 6, 7 7, 8 8, 5
// 5, 7 6, 8 7, 5 8, 6
// 5, 8 6, 5 7, 6 8, 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment