Day 5 solution

A Deep Copy and a double-ended queue would have made this day much easier. I should add those. (Having trouble finding a generic deep copy that works in .net 6, though...I opted to rewrite my original List<List<char>> solution into List<string> in lieu of a deep copy so I wouldn't have to parse the input all over again.)
This commit is contained in:
2022-12-04 23:46:24 -06:00
parent 4b51ff9970
commit b9161e4b42
4 changed files with 623 additions and 500 deletions

File diff suppressed because it is too large Load Diff

9
inputs/05a.txt Normal file
View File

@ -0,0 +1,9 @@
 [D]
[N] [C]
[Z] [M] [P]
1 2 3
move 1 from 2 to 1
move 3 from 1 to 3
move 2 from 2 to 1
move 1 from 1 to 2