|
|
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
|
f700f0cb32
|
some execution time testings
|
2022-01-17 09:40:02 +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 |
|
Stefan Harmuth
|
4880c1bee2
|
Merge remote-tracking branch 'origin/master'
|
2021-12-27 17:33:58 +01:00 |
|
Stefan Harmuth
|
5a60b71139
|
updated AOCDay Interface; output exec_time seperately
|
2021-12-27 17:33:53 +01:00 |
|
Stefan Harmuth
|
117eeec768
|
updated AOCDay Interface
|
2021-12-27 16:29:46 +01:00 |
|
Stefan Harmuth
|
5bf2ec1c47
|
Grid.range[XYZ]: make ranges reverable
|
2021-12-25 06:48:17 +01:00 |
|
Stefan Harmuth
|
709b0f471b
|
Coordinate order - not sure which comparison is the "correct" one - can't make up my mind
|
2021-12-22 09:25:50 +01:00 |
|
Stefan Harmuth
|
7656e90984
|
Coordinate order - not sure which comparison is the "correct" one
|
2021-12-22 08:44:15 +01:00 |
|
Stefan Harmuth
|
1e33dd6210
|
Merge remote-tracking branch 'origin/master'
|
2021-12-21 21:25:50 +01:00 |
|
Stefan Harmuth
|
b6bef1a78e
|
Merge remote-tracking branch 'origin/master'
|
2021-12-21 10:08:24 +01:00 |
|
Stefan Harmuth
|
fa68aa6109
|
caching for when functools.cache() is not available (looking at you, pypy!)
|
2021-12-21 10:08:18 +01:00 |
|
Stefan Harmuth
|
3b0a6480a3
|
Grid.range[XYZ]: ability to pad the range
Grid.toggleGrid(): toggle everything!
Grid.getSum(): give correct sum even if the default is not 0
|
2021-12-20 08:30:19 +01:00 |
|
Stefan Harmuth
|
d8d7112098
|
Grid.transform() in 3D!
|
2021-12-19 16:26:50 +01:00 |
|
Stefan Harmuth
|
74df9e9287
|
general irc bot interface
|
2021-12-18 20:48:01 +01:00 |
|
Stefan Harmuth
|
898d4a8d85
|
auto-detect new users and my own user (libera RPL_WELCOME fuckup workaround)
|
2021-12-16 08:54:44 +01:00 |
|
Stefan Harmuth
|
a5df60e839
|
some irc servers refuse to adhere to standards ...
|
2021-12-16 08:38:15 +01:00 |
|
Stefan Harmuth
|
072ba02831
|
make things faster/cleaner
|
2021-12-15 11:49:14 +01:00 |
|
Stefan Harmuth
|
11604338e8
|
make things faster/cleaner
|
2021-12-15 11:30:30 +01:00 |
|
Stefan Harmuth
|
2c859033fd
|
grid.getPath(): Use heap to ease finding smallest f_cost node
|
2021-12-15 11:09:58 +01:00 |
|
Stefan Harmuth
|
af2aea1a34
|
still trying to make grid.getPath() faster
|
2021-12-15 09:42:10 +01:00 |
|