advent-of-code-swift
Puzzle Solutions in Swift for Advent of Code (by avery-pierce)
advent2020
Advent of Code 2020 solutions in C++ (by bustercopley)
advent-of-code-swift | advent2020 | |
---|---|---|
1 | 4 | |
0 | 0 | |
- | - | |
0.0 | 3.2 | |
over 3 years ago | over 3 years ago | |
Swift | C++ | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code-swift
Posts with mentions or reviews of advent-of-code-swift.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-12-22.
-
-🎄- 2020 Day 23 Solutions -🎄-
Nice! I struggled with the performance of my Swift solution. I thought the problem was that my huge nextCup array was getting copied every time I updated it due to Swift's copy-on-write. I worked around it by making it an array of integer references which can mutate without triggering the array's copy-on-write process. This helped a lot, but it still takes >30s to complete. 😬
advent2020
Posts with mentions or reviews of advent2020.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-12-26.
-
[2020] Optimized solutions in C++ (291 ms total)
Building and running your code here, I get incorrect results for Day 11. For example, on my input the correct (accepted) answers are 2275, 2121 but my build of your repo says 1228,1132. I don't think the output for your input is correct either. Do you get the correct answers on your computer?
-
-🎄- 2020 Day 25 Solutions -🎄-
C++ (code). Took a few minutes to hack up a modular exponent function (repeated squaring).
-
-🎄- 2020 Day 23 Solutions -🎄-
Current code, comfortably within the 250 ms limit. Data structure is just a permutation (which is much the same thing as a circular singly-linked list but there's no need for any per-node data). I did peek, though.
What are some alternatives?
When comparing advent-of-code-swift and advent2020 you can also consider the following projects:
advent-of-code
hello-world - Innocent first test.
aoc-clojure - Advent of code 2020 solutions in Clojure
advent-of-code - Solutions to Advent of Code puzzles.
AoC2020 - Programs for Advent of Code 2020
aoc2020apl - Advent of Code 2020 solutions in Dyalog APL
Advent-of-Code - Advent of Code
aoc-2020 - My solutions for Advent of Code 2020
aoc2020
advent2020 - Advent of Code 2020 solutions in Python