Commit Graph

91 Commits

Author SHA1 Message Date
afcafbba0a set default in from_string 2022-12-04 10:58:17 +01:00
ab05a1a770 fix transformations 2022-12-04 10:57:28 +01:00
353ff51411 make AOCDay.getInput() return type casted input 2022-12-03 11:10:03 +01:00
a2aa81388c better human readable time from ns 2022-12-03 10:06:31 +01:00
33c645ac04 set()'s __and__ for list and str 2022-12-03 08:09:51 +01:00
87ead88610 set()'s .intersection for list and str 2022-12-03 08:05:45 +01:00
c55d36380b Merge remote-tracking branch 'origin/master' 2022-12-03 06:23:16 +01:00
b497ee4bc5 actually never implemented a simple list intersection? 2022-12-03 06:23:12 +01:00
Stefan Harmuth
b6360d18ed grid.Grid(): getActiveRegion(); returns connected !default regions 2022-11-30 11:20:48 +01:00
Stefan Harmuth
c16bc0d1cf *real* start to hex coordinates 2022-11-29 20:37:46 +01:00
Stefan Harmuth
d92686dd28 better stopwatch 2022-11-29 19:36:55 +01:00
4f45d1f32d start on hexgrids 2022-11-28 08:18:43 +01:00
199d6c1908 more precise stopwatch 2022-11-19 12:57:40 +01:00
8e0b28159f waaaay better circles - also for 3d coords 2022-08-14 13:38:41 +02:00
3c5e27cf36 waaaay better circles 2022-08-14 13:36:55 +02:00
987a5bab28 better dealing with boundaries
getting circles (mind the FIXME)
2022-08-14 13:25:33 +02:00
c5428a4ea5 keep a more accurate track of boundaries 2022-08-14 12:32:37 +02:00
0ddf7596e0 better annotation 2022-08-14 11:53:45 +02:00
1f633f3125 min and max in the same function 2022-08-14 11:51:02 +02:00
c254bb8643 Merge remote-tracking branch 'origin/master' 2022-08-10 23:35:01 +02:00
f83709758c set shaped areas in a grid 2022-08-10 23:34:58 +02:00
Stefan Harmuth
953dcc9505 Merge remote-tracking branch 'origin/master' 2022-08-10 10:09:22 +02:00
Stefan Harmuth
3bbb37526d some minor refactorings suggested by sonarcube 2022-08-10 10:09:15 +02:00
f5d59cd74f cleanup 2022-08-07 19:36:48 +02:00
210d407bf9 remove class variables (should be instance variables) 2022-08-07 19:34:37 +02:00
ec35ad9f5d Merge remote-tracking branch 'origin/master' 2022-08-07 18:52:21 +02:00
c752c286d2 pentagonal number sequence (really int) 2022-08-07 18:50:08 +02:00
2ac37ad567 pentagonal number sequence 2022-08-07 18:45:33 +02:00
Stefan Harmuth
c8bf84c578 Perhaps someday in the future you're able to remember that dicts have an update() method ... 2022-05-04 10:45:55 +02:00
Stefan Harmuth
8f8201d8c8 Support pickled datafiles. Not readable by humans, but way more versatile 2022-05-04 10:39:32 +02:00
Stefan Harmuth
1b4ef0276b Merge remote-tracking branch 'origin/master' 2022-04-19 09:15:55 +02:00
Stefan Harmuth
04c6357f9c factorization is always useful to have 2022-04-19 09:15:49 +02:00
Stefan Harmuth
622613a0ad introduce unbalanced binary trees (incredibly fun when inserting already sorted values!) 2022-01-24 13:37:38 +01:00
Stefan Harmuth
cdac29dee7 found some execution time; also ditch way to complicated heap implementation and just use the balancing binary tree 2022-01-16 21:03:24 +01:00
Stefan Harmuth
9d373596a1 binary trees; slow af, but functional :D 2022-01-16 17:39:37 +01:00
Stefan Harmuth
a1eb51eb80 nicer reprs 2022-01-14 12:39:14 +01:00
Stefan Harmuth
1e1f5ef126 list comp is faster than building lists yourself 2022-01-14 12:29:54 +01:00
Stefan Harmuth
3590c2550c apparently this is faster than min()/max() ... ?! 2022-01-14 11:58:26 +01:00
Stefan Harmuth
dbd308dbf3 that should cover linked lists (and their derivates Stacks and Queues) 2022-01-14 11:23:00 +01:00
Stefan Harmuth
c2b36a0e73 Merge remote-tracking branch 'origin/master' 2022-01-14 10:19:36 +01:00
Stefan Harmuth
e239196065 starting linked lists 2022-01-14 10:19:30 +01:00
Stefan Harmuth
afefa8dcf0 use git if available 2021-12-29 12:27:50 +01:00
Stefan Harmuth
5e3bf28e7e deal with shapes (like squares and cubes) 2021-12-29 12:26:17 +01:00
Stefan Harmuth
c4cfd0b298 remove redundant printing 2021-12-29 09:49:58 +01:00
Stefan Harmuth
ed90adc75c stopwatch: deal with elapsed == 0 (for whatever reason) 2021-12-29 08:46:40 +01:00
Stefan Harmuth
c9f91bbd98 aoc.py: input cleanup
requirements!
2021-12-29 08:22:58 +01:00
Stefan Harmuth
6b5d3de95b allow stopwatch to return averages
fix AOCDay._submit()
2021-12-28 21:11:07 +01:00
Stefan Harmuth
082c61beca auto input-download and answer-submit 2021-12-28 12:51:26 +01:00
Stefan Harmuth
149da572c2 auto input-download and answer-submit 2021-12-28 12:50:37 +01:00
Stefan Harmuth
5df8926378 pythons round() behaves unexpected (for me at least) 2021-12-28 11:49:14 +01:00