Commit Graph

40 Commits

Author SHA1 Message Date
6b7f79b6f0 implement using custom sort function on an update struct
rerun benchmarks
2024-12-09 01:05:54 +00:00
965e704d39 no need to check outofbounds here 2024-12-08 21:46:44 +00:00
5ed54e672b add factory method newAntiNodeCache() 2024-12-08 20:11:03 +00:00
c1b8cb3f18 add day-08 + benchmarks 2024-12-08 19:55:23 +00:00
9bfd45aee4 return early if total exceeds target
re-run benchmarks
2024-12-07 23:47:20 +00:00
d42df0cd84 add day-07 + benchmarks 2024-12-07 23:39:28 +00:00
1c60c034e3 remove const obstacle 2024-12-06 23:31:22 +00:00
3ce4a4112e rerun benchmarks 2024-12-06 23:19:11 +00:00
02443ef244 move check is loop logic to top of loop 2024-12-06 23:17:44 +00:00
08706ecc11 make use of graph factory function.
move isLoop logic into guard clause.
2024-12-06 22:23:01 +00:00
8bf3f603d5 remove {graph}.obstacles 2024-12-06 20:31:38 +00:00
df605fba15 fix benchmark for daysix package 2024-12-06 20:12:08 +00:00
567ca72402 add day-06 + benchmarks 2024-12-06 20:01:17 +00:00
d1308ffdfe rename data to buf 2024-12-06 19:57:07 +00:00
e67369041e upd scaffold 2024-12-05 18:24:29 +00:00
886679a095 add day-05 + benchmarks 2024-12-05 18:24:22 +00:00
b981b962a2 upd loglevel flag desc 2024-12-05 01:37:32 +00:00
1ef43151b8 upd benchmark function names 2024-12-05 01:36:22 +00:00
e7aa98d637 add day-04 + benchmarks 2024-12-05 01:31:44 +00:00
fca32422e4 get rid of named match groups 2024-12-03 15:43:58 +00:00
d32b376619 upd scaffold 2024-12-03 14:42:35 +00:00
f0bf82c96a add daythree + benchmarks 2024-12-03 14:42:28 +00:00
64f4df4fea return scanner errors 2024-12-03 02:29:28 +00:00
417266c838 move comparator functions into util 2024-12-02 22:48:19 +00:00
4416dab080 rename withComparator to withDampener. We're using comparators regardless...
add type definition dampener
2024-12-02 22:39:56 +00:00
d321e6c977 assign comparator functions to variables for readability 2024-12-02 22:28:14 +00:00
6e06bd5b16 add day-02 + benchmarks 2024-12-02 19:28:55 +00:00
67a04b91c8 remove log.Fatal's from solve.go, return values back to main. 2024-12-02 18:30:26 +00:00
600d01660c remove regex, use strings.Fields instead 2024-12-02 18:28:28 +00:00
c3fa7d0ff8 upd scaffold and makefile 2024-12-02 02:06:35 +00:00
84312b157c add benchmarks for one and two 2024-12-02 02:06:26 +00:00
d05828154e move flag parsing into /cmd/cli/main.go
solves issue redefined flag when running benchmarks
2024-12-02 02:04:35 +00:00
588561be7c embed and read testdata from main 2024-12-02 00:23:59 +00:00
40808475ac add -f flag for passing filename 2024-12-01 23:12:34 +00:00
947016d43b add blank line 2024-12-01 22:04:49 +00:00
475ccfe0ba add bench to makefile 2024-12-01 21:14:30 +00:00
1ea679ebe3 remove occurrences var 2024-12-01 21:14:02 +00:00
cacbb11b7c add benchmark 2024-12-01 18:25:08 +00:00
3a10d377ef break early once value in right surpasses k in left 2024-12-01 18:03:05 +00:00
25b6db75c8 first commit 2024-12-01 17:50:02 +00:00