Last active
December 7, 2025 18:11
-
-
Save danielcristofani/3ae49f8fb1be215bb971245bb069aacc to your computer and use it in GitHub Desktop.
brainfuck solution for Advent of Code, day 7, part 1
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
| [2025day7a.b -- 2025 Advent of Code Day 7 Part 1 | |
| (c) 2025 Daniel B. Cristofani | |
| http://brainfuck.org/ | |
| This program is licensed under a Creative Commons Attribution-ShareAlike 4.0 | |
| International License (http://creativecommons.org/licenses/by-sa/4.0/). | |
| This program solves Advent of Code 2025, Day 7, Part 1. | |
| (https://adventofcode.com/2025/day/7) | |
| Assumes EOF="no change" or EOF=0. No assumptions about cell size. | |
| This was a fun one. We use cumulative cases rather than exclusive cases.] | |
| >>>>>>>>+>>>,[ | |
| -[>>[->>>>]<<[>>++++>>]<<<<-]+>>[ | |
| -[ | |
| <+>--[ | |
| +<-[ | |
| <<[-]+<[<<] | |
| <[[-]+<---------[++++++++++>[>>]<->]<+] | |
| >>[>>]>[-]+<<- | |
| ]> | |
| ]>> | |
| ]<<[[-<<]>>] | |
| ], | |
| ]<<++>----[+++++[<++++++++>-]<<]>[.>>] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment