-πŸŽ„- 2021 Day 17 Solutions -πŸŽ„-

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • advent

    advent of code (by jasontconnell)

  • Go. https://github.com/jasontconnell/advent/blob/master/2021/17/main.go

  • AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

  • python modeling the equations was the way to go no need to loop over all time steps to get the en position, just using equations of motion

  • 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
  • aoc2021

    Solutions for the Advent of Code 2021 (by jkaye2012)

  • I actually did just that here! Completes part 2 in 400 mics. I think this could be optimized even further as well.

  • AdventOfCode-Kotlin

  • Kotlin (1177/731)

  • aoc2021

    Advent of Code 2021 Solutions (by nlowe)

  • Go, 1093/563

  • advent-of-code-2021

    AOC in go (by alextanhongpin)

  • adventofcode

    Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)

  • My Scala solution.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • aoc-2021-rust

    Advent of Code 2021 in Rust (by philband)

  • Rust 991 / 584

  • AdventOfCode2021

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

  • So anyway, I started blasting

  • AdventOfCode2020

    Advent of Code (by LennardF1989)

  • AdventOfCodeCSharp

    My AoC Solutions

  • aoc-2021

    Advent of Code 2021 with C#/LINQ (by jasonincanada)

  • Basic C# solution with a straightforward try-everything simulation. This one could've been called 50 Thousand Iterations Under the Sea

  • aoc2021

  • AdventOfCode-Java

    adventOfCode(Language.JAVA);

  • Java https://github.com/SimonBaars/AdventOfCode-Java/blob/master/src/main/java/com/sbaars/adventofcode/year21/days/Day17.java

  • AoC2021

    Advent of Code 2021 in F# (by kimvais)

  • F#

  • Advent2021

  • Advent-of-Code-2021

    Advent of Code Solutions 2021 in Python (by DenverCoder1)

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • Raku, 4863/4996. I thought for awhile about analytic solutions, concluded that it was probably covered by some calculus or linear algebra that I forgot, and decided to brute force it. I'm glad I did, since part 2 would be even more challenging analytically. I also managed to introduce a whole bunch of bugs, including an extended period of WTF until I realized that (25-7i).re ∈ 20..30 is False because Complex.re returns a Num but a Range of Int only accepts ∈ on Ints. Meanwhile, (25-7i).re ~~ 20..30 (smartmatch, not set containment) returns True because There's More Than One Way To Do It, And Some Of Them Are Subtly Wrong.

  • advent-of-code

    Advent of Code (by nikolay)

  • My solution in Go.

  • adventofcode

    Advent of Code 2021 (by andreabjork)

  • Full code here

  • aoc2021

    Advent of Lua (by cideM)

  • Repository

  • deno_aoc

    πŸŽ„ Advent of code solutions written in TypeScript for Deno.

  • advent-of-code

    Advent of Code challenges in various languages (by cfbender)

  • This is so clean. I had it in my mind to not brute force from the beginning, but I should've given up given that up given the input size as well. It produced a lot more readable code than mine

  • AoC

    Discontinued Advent of Code submissions (by tomribbens)

  • My solutions as per usual at my Github

  • Coding

    Coding for fun (by GaloisGirl)

  • COBOL brute force.

  • advent-of-code-2021-rescript

    Discontinued Advent of Code 2021 - implemented in ReScript

  • ReScript code

  • adventofcode2021

    Advent Of Code 2021 Solutions (by agardes)

  • Today's seemed weirdly easier than the previous days, like "too good to be true". Javascript solution

  • aoc2021

    Advent of Code 2021 (by sotolf2)

  • Advent_of_Code2021

    Solutions to Advent of COde 2021 (by cettt)

  • I first computed bounds and checked within a certain region of velocities. Compared with yesterday this was a piece of cake. I guess for must inputs the solution to part1 is simply y*(y+1)/2 where y is the absolute value of the lower bond - 1. github

  • AdventOfCode2021-python

    My algorithms for AdventOfCode2021 in python

  • My Python3 solution

  • advent-of-code-2021

  • aoc2021

    The repository where I place my AOC logs, starting from 2021 (by RocketRace)

  • aoc2021

    Advent of Code 2021 on my homemade 16-bit CPU SCAMP (by jes)

  • AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • adventofcode

    Advent of code solutions (by mathsaey)

  • advent_of_code

  • Brute force like most people I think - kept wondering if there was going to be some horrible gotcha that meant brute force would not work, but it did.

  • adventofcode

    Advent of code solutions (by julian-west)

  • Python day 17 solution (GitHub). Not the fewest lines of code, but used dataclasses and modular functions to try improve readability -- I got very confused with keeping track of indices of velocities vs coordinates in other people's posted solutions. I find dataclasses in Python can be a great way to be descriptive about the quantities you are iterating

  • advent-of-code-2021

    Discontinued Code I used for solving https://adventofcode.com/2021 (by pavel1269)

  • AdventOfCode

  • Python 3 Just brute forced this one, why not? https://github.com/PeteEdley-EdleyIT/Advent-of-Code-2021-Day17/blob/master/Problem1.py

  • advent-of-code

  • advent_of_code

    Advent of Code solutions (by domm)

  • aoc

    Discontinued Advent of Code tools and solutions (by rileythomp)

  • Nice! I've got a similar repo

  • adventofcode

  • AdventOfCode

  • advent-of-code-2021

    zig solutions to advent of code 2021 (by jchevertonwynne)

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

  • Brute force Scala using tail recursion. There could be some optimizations on the velocity ranges I used, but it works. Hardest part was finding the proper minimum y velocity for part 2 (which I realized by looking at the example is just yRange.min)

  • I did the maths. My idea was that for a given time t, you can obtain all possible values of y and x (x is more complicated) such that after t step the probe is in the target area. GitLab.

  • aoc-2021

    Advent of Code 2021 (by zookini)

  • adventofcode

    Solutions for problems from AdventOfCode.com (by bhosale-ajay)

  • TypeScript, Rare day where Part 1 was solved with a formula and Part 2 required brute force.

  • AdventOfCode2021

  • Slow

  • adventofcode

    https://adventofcode.com/2021/ (by Torakushi)

  • AoC2021

    Advent of Code 2021 (by gereons)

  • AdventOfCode2021

    My solutions for the 2021 Advent of Code problems. (by Goldenlion5648)

  • Python (3918/3570)

  • advent-of-code-solutions

    My JS solutions for https://adventofcode.com/ (by AugustsK)

  • Part one: https://github.com/AugustsK/advent-of-code-solutions/blob/master/2021/day17/partOne.js

  • advent-of-code

    My Advent of Code solutions (by premun)

  • The whole solution: https://github.com/premun/advent-of-code/tree/main/src/17

  • adventofcode

    Advent of Code solutions (by m-tkach)

  • My full solution: github

  • advent-of-code

    Advent of Code puzzles (by KT421)

  • aoc2021

  • Advent-2021

  • github: https://github.com/GMainardi/Advent-2021/tree/main/17

  • aoc2021

    Advent of Code 2021 (Elixir + Pygame) (by p88h)

  • Elixir 3 ms each part, sme math might have been involved.

  • aoc

    Advent of Code Solutions (by joeyemerson)

  • AdventOfCode2021

    Some solutions for as much of advent of code 2021 as I can be bothered to do. (by TomHemery)

  • C# github Code footprint is small, vaguely sensible bounds on a brute force solution. Why not? I'm more proud of my commit name than my solution.

  • AdventOfCode

  • C# full solution

  • advent-of-code-2021

    Misha's Advent of Code 2021 "hacking" (by mramendi)

  • aoc2021

    Advent of Code 2021 - my answers

  • I'm using dumber bounds in Kotlin, Python, and Rust since it was easier. But basically, assuming 0 ≀ all target x, we only need to check 0 ≀ 𝚫x ≀ max target x β€”anything else immediately overshoots the targetβ€” and assuming all target y < 0, we only need to check min target y ≀ 𝚫y ≀ max abs target y β€”anything smaller will immediately overshoot and anything larger will also overshoot after returning to origin.

  • AdventOfCode2021FSharp

    Solutions for Advent of Code 2021 in F#

  • F# solution with Jupyter Notebook. Brute force. I actually solved Part 2 before solving Part 1, unknowingly.

  • aoc-typescript

  • adventofcode

    My collection of Advent of Code solutions in a slightly overkill project setup πŸ™ƒπŸ‘» (by marcelblijleven)

  • advent-of-code

  • Common Lisp. Very disappointing problem since you can just brute force over even unreasonable bounds quickly. Would have been more appropriate as a day 4 or 5 problem

  • advent-of-code-2021

    Solutions for the Advent of Code 2021 puzzles (by lucashmsilva)

  • Advent-of-Code-2021

    \,,,/ (by spyroid)

  • AoC-2021

  • Part 1

  • advent_of_code

    This repository contains solutions to each of the problems in Advent of Code 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in C++ (and 2020 in Python as well)

  • Solutions in C++: Part 1 Part 2 (As always, every file is a self ontained solution) Explanatory notes added for the math used.

  • AdventOfCode

    My solutions to the Advent of Code puzzles. (by kemmel-dev)

  • adventofcode

    Advent of code solutions (by SuddenGunter)

  • Go

  • advent-of-code-2021

  • Python 3: Part 1 / Part 2

  • aoc2021

  • Python 3

  • advent

    Git mirror of https://bitbucket.org/sjl/advent (by sjl)

  • AdventOfCode2021

    My solutions to https://adventofcode.com/2021 (by willkill07)

  • AdventOfCode

    Advent of Code Solutions (by auxym)

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • AOC2021

    Advent of Code 2021 (by smmartin330)

  • Python3 - https://github.com/expsmartin/AOC2021/blob/main/d17.py Threw away 3 hours trying to solve this like a trick question. walked away for 6 hours, came back and assumed β€œnah, it reads how it reads” and solved p1 in 20 mins and p2 in 20 seconds.

  • Advent-of-code-2021

    Discontinued [Moved to: https://github.com/Toanuvo/Advent-of-code] (by Toanuvo)

  • advent-of-code-2021

    Advent of Code 2021 https://adventofcode.com/2021 (by bozdoz)

  • AdventOfCode

    Advent Of Code 2021 (by charelF)

  • I left a longer comment about why it is so in my solution, you can see it here!

  • advent-of-code-2021

  • adventofcode2021

  • aoc-2021-in-kotlin

  • AdventOfCode2021

  • AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

  • AdventOfCode2021

    Advent of Code 2021 challenge: 13 different languages, one chosen at random every day! (by Qualia91)

  • advent-of-code

    My Advent of Code submissions (by DecemberDream)

  • Python day 17

  • advent-of-code-go

    All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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

  • -πŸŽ„- 2021 Day 13 Solutions -πŸŽ„-

    143 projects | /r/adventofcode | 12 Dec 2021
  • -πŸŽ„- 2021 Day 12 Solutions -πŸŽ„-

    145 projects | /r/adventofcode | 11 Dec 2021
  • Ask HN: How do I get better at programming as a hobbyist?

    1 project | news.ycombinator.com | 23 Apr 2024
  • What Happens After Agile Dies?

    1 project | dev.to | 11 Apr 2024
  • When was the last time you used this? - Part 2: Algorithms

    1 project | dev.to | 28 Mar 2024