Skip to content

Instantly share code, notes, and snippets.

@waynejo
Last active March 15, 2024 11:26
Show Gist options
  • Save waynejo/905786f295f4cc1786e2e045088f1787 to your computer and use it in GitHub Desktop.
Save waynejo/905786f295f4cc1786e2e045088f1787 to your computer and use it in GitHub Desktop.
@main def solve1_2(): Unit =
val initial = 11
val increasingCount = 8
val input = 102
val count = (input - initial) / (increasingCount - 1)
println(count * increasingCount + initial)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment