advent-of-code

advent of code (partial solutions)
Log | Files | Refs | README

commit 504ff1519cc3c2811da31eb0ee90d34b63fef2e5
parent 205f94488eb8d924f834fbc98bbdfe56f5508921
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu,  9 Dec 2021 22:57:41 -0800

cleanup

Diffstat:
M2021/aoc10.rs | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/2021/aoc10.rs b/2021/aoc10.rs @@ -1,12 +1,11 @@ -use std::collections::HashSet; use std::error::Error; use std::io::{self, Read}; -// ascii differences -// ( ) -> 40, 41 prime -// [ ] -> 91, 93 = 3 * 31 -// { } -> 123, 125 = 5 * 25 -// < > -> 60, 62 = 2 * 31 +// ascii +// ( ) -> 40, 41 +// [ ] -> 91, 93 +// { } -> 123, 125 +// < > -> 60, 62 // // reads 1 byte at a time, no buffer