Code review AoC Day 4

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AdventOfCodeRust2021

    Code related to Advent of Code 2021 using Rust

  • Here is the link: https://github.com/JCardoen/AdventOfCodeRust2021/blob/master/src/day_four/four.rs

  • adventofcode

    Advent of Code! https://adventofcode.com/ (by dfontana)

  • I modeled my board & marked numbers independently; the former as a hashmap and the latter as a bit-vector. That simplified my equivalent of is_winner and flag_number: https://github.com/dfontana/adventofcode/blob/master/y2021/src/solutions/day4.rs

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • aoc2021

    Advent of Code 2021 (by MichaelCG8)

  • Also, instead of summing the remaining values at the end I summed them all at the start then subtracted them as they were checked off, meaning that i didn't need to store a Boolean for each entry recording whether it remained. https://github.com/MichaelCG8/aoc2021/blob/main/src/bin/04.rs

  • advent2021

    Advent of Code 2021 in Rust (by jeremylt)

  • Advent-of-Code-2021

    Solutions for Advent of Code 2021 (by agubelu)

  • Code: https://github.com/agubelu/Advent-of-Code-2021/blob/master/src/days/day04.rs

  • aoc-2021

    Advent of Code 2021 (by zookini)

  • Here's an iterator based solution https://github.com/zookini/aoc-2021/blob/master/src/bin/04.rs

  • aoc2021

    Advent of Code 2021, in Rust (by Killavus)

  • If you're interested comparing solutions, you may check my code here: https://github.com/Killavus/aoc2021/tree/master/day4. It is not optimised for performance though and I propably should've used FromIterator instead of TryFrom from mutable Lines iterator to BingoBoard, but maybe you can take something out of it. Good luck with further AoC challenges!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts