Skip to content

Commit 9365a7e

Browse files
committed
Add todo note
1 parent a1f3fcd commit 9365a7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

day22/src/day22.dart

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ int score(List<int> input, int x1, int x2, int x3, int x4) {
4545
return sum;
4646
}
4747

48+
// TODO: Solve this in a more clever way, by iterating each buyer's possible
49+
// keys (sliding window) and tracking in a map the first value for each key.
50+
// Then merge the maps for each buyer by taking the max values.
51+
4852
int findBestScore(List<int> input) {
4953
int bestScore = 0;
5054
int bound = 9;

0 commit comments

Comments
 (0)