For personal reasons reached day 7 part 2, very far from my objective of reaching day 12 and sometimes procrastinating on YouTube and not taking into consideration that the exercises get harder day by day. For example yesterday wanted to finish the day 7 part 2 and day 8. And it took probably 3 hours only to check that my recursive approach was taking too much time but I was not sure it was on a loop or not because its hard to track a state.
So I've redone it using a Depth-First-Search approach have the openPaths saved on a array so I could debug it and was sure that would be enough but when doing the logging of the state my worst feeling was right it was taking too much time like the recursive approach. I thought of using the BFS but that would not help me because I wanted the total number of timelines not the shortest one. Did not want to search for algorithms. Wanted to think more about the best approach because I could feel I had more options to explore.
On the DFS saw we had a lot of repetition passing on the same paths very often only changing one or two vertices from on timeline to another, so on the matrix input instead having a line when we pass a point what if we had the number of paths that passed there and then we would add that number to each number of paths that pass through there from other origin. It will be my next approach, hope it goes well!.
Since the exercises are getting harder I could think of doing one exercise two in two days doing one part each day but I'll keep the same objective of doing one exercise each day to keep the rhythm, I will start early on the morning to have some margin at the end of day if a need some more time. I'll end day 7 today and keep on day 8 tomorrow early in the morning after a morning run.
Doing the math, if I do day 7 exercise today and one exercise each day I'll complete the 12 days exercises on March 16th Monday. Lets do it.
Stay focused.