| Age | Commit message (Collapse) | Author |
|
The solution for part 2 can be greatly optimized but I don't have that
much time.
|
|
This one has more explanation.
|
|
These days have been done while traveling, so they may be less modular
due to time/phone-screen constraints.
|
|
Courtesy of Reddit. This version goes 30+x faster by operating
backwards and cutting out branches where e.g. the factor for the
multiplication is not a divisor of the result.
|
|
Lesson learned, the one from Day 06
|
|
On the importance of not overengineering stuff
|
|
|
|
Also rename `main` to `main.lua` and `main.scm` to `main`.
|
|
Returns to Guile Scheme as well
|
|
In the beginning I thought of using modular components, but this would
mean that I would have to retest previous days if I want to make a
change to the implementation. Thus, for learning purposes, I prefer
to keep everything in one file.
|
|
|
|
After comparing the time I take with both languages, Lua seems more
practical.
|
|
I want to learn it more than I want to learn Lua right now.
And I won't have time for both once the problems are more difficult.
|
|
To make it more idiomatic & explore the language
|
|
|
|
|
|
This also includes a template to call the relevant functions from each
day more conveniently.
|
|
|
|
|