Skip to content

Commit 40b9624

Browse files
readme details for my mistakes and wrong assumptions
Took 20 minutes
1 parent 30b68b9 commit 40b9624

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ This repo does follow the automation guidelines on the `/r/adventofcode` [commun
2828
- Inputs files are downloaded once and locally cached
2929
- It is always possible delete the local copy and ensure to download a new uncorrupted copy
3030
- 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
44+
- **Day 1**: (part 1) forgot to sort

0 commit comments

Comments
 (0)