Commit Graph

18 Commits

Author SHA1 Message Date
Stedd 3099893da1 removed unused line 2024-12-01 17:57:55 +01:00
Stedd e74ca62d02 combined part 1 and 2 2024-12-01 17:39:49 +01:00
Stedd 6a23fa268e Small gain in performance from reserving space
I don't want to hardcode the number of lines in the input file.
2024-12-01 17:29:02 +01:00
Stedd 3d44c7c416 Using the filestream to run the parser loop directly
Also removed col2 variable and calculating occurrence_map during parsing.
2024-12-01 17:28:18 +01:00
Stedd 89318eaf4c added stress testing 2024-12-01 16:52:23 +01:00
Stedd ba00e02c3a The if is not actually needed, I redundantly created the standard behaviour of unordered_map 2024-12-01 16:37:06 +01:00
Stedd 095ddd091e mapped occurrence of each number in column 2 2024-12-01 15:22:23 +01:00
Stedd 7955a35fc2 corrected input in part 1 2024-12-01 15:00:25 +01:00
Stedd b6a7ce896a added part 2 info 2024-12-01 14:59:55 +01:00
Stedd e778c916b6 restructured for part 2 2024-12-01 14:59:32 +01:00
Stedd f435e9b5a6 first attempt at the solution 2024-12-01 13:47:11 +01:00
Stedd 1034cd5c94 need to use absolute value to get the correct distance between the IDs 2024-12-01 13:46:54 +01:00
Stedd 67664a16de lists cant be accessed by index in c++ 2024-12-01 13:46:25 +01:00
Stedd 370370585e Added the last functionality to calculate the answer 2024-12-01 13:38:57 +01:00
Stedd da436272dc able to read the input and split input into two strings 2024-12-01 13:19:04 +01:00
Stedd acaa1d78be added task info 2024-12-01 12:49:55 +01:00
Stedd 5fd685cc55 first run structure 2024-12-01 12:09:27 +01:00
Stedd e0d65521c0 added day 1 2024-12-01 12:00:35 +01:00