799 B
799 B
day 07 (oops, only 09!)
part 1
UwU finally something fun!
Writing the recursive bits weren't that hard; Debugging them
to figure out why aren't they working is another thing. I spent
a solid hour trying to debug my code completing correctly on
the sample test data, and not on my chall; The total size was
somehow way too small. It turned out that I've had an invalid
string replace in handling the ..
case in the recurse function.
As long as a branch never further branched out (so, one directory
continued through a path of more directories containing one or
zero directories), it was all fine. Otherwise, pwd was set to
two slashes, which broke Things.
i hate how I handled half of the code as a subshell, but I don't care enough about it to rewrite it now
Well! onto part 2...