Skip to content

Commit 10b7de7

Browse files
authored
GH-96: Solve problem aoc2022day4 (#102)
1 parent 705487e commit 10b7de7

File tree

11 files changed

+1146
-2
lines changed

11 files changed

+1146
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ A data structure is a data organization, management, and storage format that is
169169

170170
Events of competitive programming
171171

172-
* [Advent of Code 2022](collections/advent-of-code-2022/)
172+
* [🎃 Advent of Code 2022](collections/advent-of-code-2022/)
173173

174174
## Contributors
175175

collections/advent-of-code-2022/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Advent of Code 2022
1+
# 🎃 Advent of Code 2022
22

33
> Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other.
44
@@ -27,6 +27,16 @@
2727
</td>
2828
</tr>
2929
<tr>
30+
<td>Day 4</td>
31+
<td><a href="https://adventofcode.com/2022/day/4">Link</a></td>
32+
<td>
33+
<a href="../../problems/aoc2022day4/src/main/solution1.cpp"><code>cpp🐀</code></a>
34+
</td>
35+
<td>
36+
<a href="../../problems/aoc2022day4/src/main/solution1.cpp"><code>cpp🐀</code></a>
37+
</td>
38+
</tr>
39+
<tr>
3040
<td>Day 3</td>
3141
<td><a href="https://adventofcode.com/2022/day/3">Link</a></td>
3242
<td>

problems/aoc2022day4/.gitginore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
solution

problems/aoc2022day4/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AoC Problem
2+
3+
## Usage
4+
5+
Run program with an example
6+
7+
```
8+
bazel run src/main:solution1 `pwd`/data/input0.txt
9+
bazel run src/main:solution1 `pwd`/data/input1.txt
10+
```

problems/aoc2022day4/data/input0.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2-4,6-8
2+
2-3,4-5
3+
5-7,7-9
4+
2-8,3-7
5+
6-6,4-6
6+
2-6,4-8

0 commit comments

Comments
 (0)