Day 7. Yeah, I copypasta'd someone else's recursive function summing an arithmetic progression. Don't judge me.
https://github.com/owlz84/advent21/blob/d07p2/src/main/scala/org/stuart/advent21/Crabs.scala
That arithmetic sum is pretty funky... But you could have just done n(n+1)/2 😅
@frankenbike started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Day 7. Yeah, I copypasta'd someone else's recursive function summing an arithmetic progression. Don't judge me.
https://github.com/owlz84/advent21/blob/d07p2/src/main/scala/org/stuart/advent21/Crabs.scala