You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,3 +28,17 @@ This repo does follow the automation guidelines on the `/r/adventofcode` [commun
28
28
- Inputs files are downloaded once and locally cached
29
29
- It is always possible delete the local copy and ensure to download a new uncorrupted copy
30
30
- The `User-Agent` header contains the info about this repository
31
+
32
+
33
+
## Mistakes and wrong assumptions I did while solving puzzles
34
+
35
+
-**Day 6**:
36
+
- (part 1) missed that in a single step the guard could find his direction blocked and the direction at 90°, so he must turn by 180°
37
+
- (part 2) checking any possible positions for placing obstacles instead of using the initial path of the guard; it just requires more iterations and time
38
+
-**Day 5**: (part 1) considering that multiple items could be at the same topological order, the problem was simpler; it was a nice game to adapt a standard algorithm for topological order (Kahn's) to generate a data structure (`List<List<String>> partialOrder`) that holds the information about missing relation between items
39
+
-**Day 4**: (part 1) forgot to check in diagonal
40
+
-**Day 3**: (part 2) checking if `s.startsWith("do")` or `s.startsWith("don't")` and the first always triggers
41
+
-**Day 2**:
42
+
- (part 1) missed to check when two levels are equals
43
+
- (part 2) tried to fix the levels without the bruteforce approach
0 commit comments