mjpieters / adventofcode Goto Github PK
View Code? Open in Web Editor NEWAdvent of Code solutions 2015-2023
License: MIT License
Advent of Code solutions 2015-2023
License: MIT License
Hey there!
Not really an issue, just wanted to thank you for explaining day 6 so well in your solution.
I was quite stuck and really helped me solve it. Thanks again and happy holidays!
This algorithm made assumption that half the target is not in the set. Example, with input coins:
1010
786
1234
It's needed to find the 786*1234
solution and not 1010*1010
. Probably better to use a multiset (collections.Counter
).
Nice notebooks this year, Martijn! I noticed the assert in Day 19.ipynb part 2 is bogus:
assert reduce(mul, largest_number_geodes(example))
It should be
assert reduce(mul, largest_number_geodes(example)) == 3472
Or even better
assert math.prod(largest_number_geodes(example)) == 3472
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.