advent-of-code-2022
By foresterre
advent-of-code
My solutions for adventofcode.com (by mdwhatcott)
advent-of-code-2022 | advent-of-code | |
---|---|---|
1 | 7 | |
0 | 4 | |
- | - | |
10.0 | 8.4 | |
over 1 year ago | about 2 months ago | |
Rust | Go | |
- | MIT License |
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-2022
Posts with mentions or reviews of advent-of-code-2022.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-02.
-
-🎄- 2022 Day 3 Solutions -🎄-
Rust 3a: use day_03::{intersect, priority}; fn main() { let input = include_bytes!("../../../input/day_03.txt"); let sum_of_priorities = input .split(|&byte| byte == b'\n') .map(|line| line.split_at(line.len() / 2)) // split into equally sized compartments .map(|(l, r)| intersect([l.iter().copied(), r.iter().copied()])) // find the intersection of the compartments .map(priority) // map to priorities .sum::(); println!("{}", sum_of_priorities); } 3b: use day_03::{intersect, priority}; fn main() { let input = include_bytes!("../../../input/day_03.txt"); let lines = input.split(|&byte| byte == b'\n').collect::>(); let sum_of_priorities = lines .chunks(3) .map(|chunks| intersect(chunks.iter().map(|chunk| chunk.iter().copied()))) .map(priority) // map to priorities .sum::(); println!("{}", sum_of_priorities); } shared code (module: `day_03`): use std::collections::HashSet; pub fn intersect(sets: I) -> u8 where I: IntoIterator, Set: IntoIterator, { let common = sets .into_iter() .map(|set| { let set: HashSet = HashSet::from_iter(set); set }) .reduce(|l, r| &l & &r); *common.unwrap().iter().next().unwrap() } pub fn priority(item: u8) -> u32 { (if item >= b'a' { item + 1 - b'a' } else { item + 27 - b'A' }) as u32 } repo: https://github.com/foresterre/advent-of-code-2022
advent-of-code
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-09.
- [2022][Friendly Reminder] Don't commit your input files to Git
- -🎄- 2022 Day 9 Solutions -🎄-
- -🎄- 2022 Day 6 Solutions -🎄-
- -🎄- 2022 Day 3 Solutions -🎄-
-
-🎄- 2021 Day 3 Solutions -🎄-
github
-
-🎄- 2021 Day 2 Solutions -🎄-
- [Github](https://github.com/mdwhatcott/advent-of-code/blob/main/clj/src/aoc/y2021/d02.clj)
-
-🎄- 2021 Day 1 Solutions -🎄-
Clojure
What are some alternatives?
When comparing advent-of-code-2022 and advent-of-code you can also consider the following projects:
aocrunner - Advent of Code runner
advent-of-code
AdventOfCode2022
adventofcode - 🎄 Advent of Code solutions
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
aoc21
advent - Solutions to https://adventofcode.com/
Advent-of-Code-2022
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
advent-of-code-2022
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#
advent2022
advent-of-code-2022 vs aocrunner
advent-of-code vs advent-of-code
advent-of-code-2022 vs AdventOfCode2022
advent-of-code vs adventofcode
advent-of-code-2022 vs AdventOfCode
advent-of-code vs aoc21
advent-of-code-2022 vs advent
advent-of-code vs Advent-of-Code-2022
advent-of-code-2022 vs adventofcode
advent-of-code vs advent-of-code-2022
advent-of-code-2022 vs adventofcode
advent-of-code vs advent2022