Skip to content

add @bishabosha solutions #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/2023/puzzles/day03.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ def part2(input: String) =
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/03.worksheet.sc#L89) by [Spamegg](https://github.com/spamegg1)
- [Solution](https://github.com/prinsniels/AdventOfCode2023/blob/main/src/main/scala/solutions/day03.scala) by [Niels Prins](https://github.com/prinsniels)
- [Solution](https://github.com/Philippus/adventofcode/blob/main/src/main/scala/adventofcode2023/day3/Day3.scala) by [Philippus Baalman](https://github.com/philippus)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day03.scala) by [Jamie Thompson](https://github.com/bishabosha)
- [Solution](https://github.com/kbielefe/advent-of-code/blob/master/2023/src/main/scala/3.scala) by [Karl Bielefeldt](https://github.com/kbielefe)
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day3.sc) by [Michael Pilquist](https://github.com/mpilquist)
- [Solution](https://github.com/nryabykh/aoc2023/blob/master/src/main/scala/Day03.scala) by [Nikolai Riabykh](https://github.com/nryabykh/)
Expand Down
1 change: 1 addition & 0 deletions docs/2023/puzzles/day06.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,6 @@ end part2
- [Solution](https://github.com/marconilanna/advent-of-code/blob/master/2023/Day06.scala) by [Marconi Lanna](https://github.com/marconilanna)
- [Solution](https://github.com/guycastle/advent_of_code_2023/blob/main/src/main/scala/days/day06/DaySix.scala) by [Guillaume Vandecasteele](https://github.com/guycastle)
- [Solution](https://github.com/Jannyboy11/AdventOfCode2023/blob/master/src/main/scala/day06/Day06.scala) of [Jan Boerman](https://twitter.com/JanBoerman95).
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day06.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
1 change: 1 addition & 0 deletions docs/2023/puzzles/day10.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ end part2
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day10.sc) by [Michael Pilquist](https://github.com/mpilquist)
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day10/pipe-maze.sc) by [jnclt](https://github.com/jnclt)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task10/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day10.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day11.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ Here are some ideas that I think would be interesting to look into:
- [Solution](https://github.com/Philippus/adventofcode/blob/main/src/main/scala/adventofcode2023/Day11.scala) by [Philippus Baalman](https://github.com/philippus)
- [Solution](https://github.com/joeledwards/advent-of-code/blob/master/2023/src/main/scala/com/buzuli/advent/days/day11.scala) by [Joel Edwards](https://github.com/joeledwards)
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day11.sc) by [Michael Pilquist](https://github.com/mpilquist)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day11.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day12.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ def unfoldRow(input: String): String =
- [Solution](https://github.com/lenguyenthanh/aoc-2023/blob/main/Day12.scala) by [Thanh Le](https://github.com/lenguyenthanh)
- [Solution](https://github.com/SethTisue/adventofcode/blob/main/2023/src/test/scala/Day12.scala) by [Seth Tisue](https://github.com/SethTisue)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task12/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day12.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day13.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,6 @@ def findReflectionWithSmudge(pattern: Pattern): Option[Int] =
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day13/point-of-incidence.sc) by [jnclt](https://github.com/jnclt)
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day13.scala) by [merlin](https://github.com/merlinorg/)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task13/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day13.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
1 change: 1 addition & 0 deletions docs/2023/puzzles/day14.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def part2(input: String): Int =
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day14.scala) by [merlin](https://github.com/merlinorg/)
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day14/parabolic-reflector-dish.sc) by [jnclt](https://github.com/jnclt)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task14/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day14.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day15.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ end part2
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day15.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task15/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/joeledwards/advent-of-code/blob/master/2023/src/main/scala/com/buzuli/advent/days/day15.scala) by [Joel Edwards](https://github.com/joeledwards)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day15.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day16.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def part2(input: String) =
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day16.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day16.scala) by [merlin](https://github.com/merlinorg/)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task15/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day16.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day17.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def search(next: StateTransform)(using Grid): Int =
- [Solution](https://github.com/stewSquared/advent-of-code/blob/master/src/main/scala/2023/Day17.worksheet.sc) by [stewSquared](https://github.com/stewSquared)
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day17.scala) by [merlin](https://github.com/merlinorg/)
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day17.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day17.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
5 changes: 3 additions & 2 deletions docs/2023/puzzles/day18.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ yield Trench(dir, len.toInt)
### Part 2

We do the same for part 2, except we use the color to
get the trench fields:
get the trench fields:
its direction from the last digit,
and its length by converting from the hexadecimal encoding of the remaining digits.

Expand Down Expand Up @@ -119,7 +119,7 @@ def part1(input: String): String =
case s"$dirC $len (#$_)" <- input.linesIterator
dir = Direction.fromChar(dirC.head)
yield Trench(dir, len.toInt)

area(digPlan.toSeq).toString

def part2(input: String): String =
Expand All @@ -138,6 +138,7 @@ def part2(input: String): String =
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/18.worksheet.sc#L101) by [Spamegg](https://github.com/spamegg1/)
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day18.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task18/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day18.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day19.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def combinations(input: String, until: Long): Long =
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/19.worksheet.sc#L101) by [Spamegg](https://github.com/spamegg1/)
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day19.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task19/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day19.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
1 change: 1 addition & 0 deletions docs/2023/puzzles/day20.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ def part2(input: String): Long =
## Solutions from the community

- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day20.scala) by [Rui Alves](https://github.com/xRuiAlves/)
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day20.scala) by [Jamie Thompson](https://github.com/bishabosha)

Share your solution to the Scala community by editing this page.
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)