Day 17part 1 was fun. part 2 took a lot planning on pen and paper... I dont think my solution was fully general either..