Skip to content

bluebillxp/adventofcode2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021

My solution to adventofcode 2021.

Language: Java

IDE: Visual Studio Code

Day 1: Sonar Sweep

Challenge: https://adventofcode.com/2021/day/1

Solution: SonarSweeper.java

Part One:

How many measurements are larger than the previous measurement?

Part Two:

How many sums are larger than the previous sum?

Day 2: Dive!

Challenge: https://adventofcode.com/2021/day/2

Solution: SubmarinePilot.java

Part One:

What do you get if you multiply your final horizontal position by your final depth?

Part Two:

What do you get if you multiply your final horizontal position by your final depth?

Day 3: Binary Diagnostic

Challenge: https://adventofcode.com/2021/day/3

Solution: SubmarineDiagnostor.java

Part One:

What is the power consumption of the submarine?

Part Two:

What is the life support rating of the submarine?

Day 4: Giant Squid

Challenge: https://adventofcode.com/2021/day/4

Solution: BingoSubsystem.java

Part One:

What will your final score be if you choose that board?

Part Two:

Once it wins, what would its final score be?

Day 5: Hydrothermal Venture

Challenge: https://adventofcode.com/2021/day/5

Solution: HydrothermalVentSaver.java

Part One:

Consider only horizontal and vertical lines. At how many points do at least two lines overlap?

Part Two:

Consider all of the lines. At how many points do at least two lines overlap?

Day 6: Lanternfish

Challenge: https://adventofcode.com/2021/day/6

Solution: LanternfishModel.java

Part One:

How many lanternfish would there be after 80 days?

Part Two:

How many lanternfish would there be after 256 days?

Day 7: The Treachery of Whales

Challenge: https://adventofcode.com/2021/day/7

Solution: CrabSubmarineFuelSaver.java

Part One:

How much fuel must they spend to align to that position?

Part Two:

How much fuel must they spend to align to that position?

Day 8: Seven Segment Search

Challenge: https://adventofcode.com/2021/day/8

Solution: SevenSegmentDecoder.java

Part One:

In the output values, how many times do digits 1, 4, 7, or 8 appear?

Part Two:

What do you get if you add up all of the output values?

Day 9: Smoke Basin

Challenge: https://adventofcode.com/2021/day/9

Solution: HeightmapReader.java

Part One:

What is the sum of the risk levels of all low points on your heightmap?

Part Two:

What do you get if you multiply together the sizes of the three largest basins?

Day 10: Syntax Scoring

Challenge: https://adventofcode.com/2021/day/10

Solution: SyntaxScorer.java

Part One:

What is the total syntax error score for those errors?

Part Two:

Find the completion string for each incomplete line, score the completion strings, and sort the scores. What is the middle score?

Day 11: Dumbo Octopus

Challenge: https://adventofcode.com/2021/day/11

Solution: OctopusFlashNavigator.java

Part One:

How many total flashes are there after 100 steps?

Part Two:

What is the first step during which all octopuses flash?

Day 12: Passage Pathing

Challenge: https://adventofcode.com/2021/day/12

Solution: PathExplorer.java

Part One:

How many paths through this cave system are there that visit small caves at most once?

Part Two:

Given these new rules, how many paths through this cave system are there?

Day 13: Transparent Origami

Challenge: https://adventofcode.com/2021/day/13

Solution: ManualDecoder.java

Part One:

How many dots are visible after completing just the first fold instruction on your transparent paper?

Part Two:

What code do you use to activate the infrared thermal imaging camera system?

Day 14: Extended Polymerization

Challenge: https://adventofcode.com/2021/day/14

Solution: PolymerFactory.java

Part One:

10 steps - What do you get if you take the quantity of the most common element and subtract the quantity of the least common element?

Part Two:

40 steps - What do you get if you take the quantity of the most common element and subtract the quantity of the least common element?

About

My solution to adventofcode 2021

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages