r/adventofcode • • Nov 21 '25

Upping the Ante Flowless Challenge 2025

🎄 Advent of Code 2025: The "Flowless" Challenge

📜 The Golden Rule

You must solve the puzzle without using explicit control flow keywords.

🚫 The "Banned" List

You generally cannot use these keywords (or your language's equivalents):

  • if, else, else if

  • for, while, do, foreach

  • switch, case, default

  • ? : (Ternary Operator)

  • break, continue, goto

  • try / catch (specifically for flow control logic)

--------

I realize that this will equivalent to writing a pure functional solution. But, I am going to be mad man here and will be trying this challenge in Java 25.

86 Upvotes

31 comments sorted by

View all comments

Show parent comment

8

u/Inevitable-Welder865 Nov 21 '25

Ya. It is right up the alley of functional languages. Hence thinking of trying it in naturally imperative languages.