Skip to content

GH-96: Solve problem aoc2022day4 #102

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 2 commits into from
Dec 25, 2022
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ A data structure is a data organization, management, and storage format that is

Events of competitive programming

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

## Contributors

Expand Down
12 changes: 11 additions & 1 deletion collections/advent-of-code-2022/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Advent of Code 2022
# 🎃 Advent of Code 2022

> 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.

Expand Down Expand Up @@ -27,6 +27,16 @@
</td>
</tr>
<tr>
<td>Day 4</td>
<td><a href="https://adventofcode.com/2022/day/4">Link</a></td>
<td>
<a href="../../problems/aoc2022day4/src/main/solution1.cpp"><code>cpp🐀</code></a>
</td>
<td>
<a href="../../problems/aoc2022day4/src/main/solution1.cpp"><code>cpp🐀</code></a>
</td>
</tr>
<tr>
<td>Day 3</td>
<td><a href="https://adventofcode.com/2022/day/3">Link</a></td>
<td>
Expand Down
1 change: 1 addition & 0 deletions problems/aoc2022day4/.gitginore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
solution
10 changes: 10 additions & 0 deletions problems/aoc2022day4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AoC Problem

## Usage

Run program with an example

```
bazel run src/main:solution1 `pwd`/data/input0.txt
bazel run src/main:solution1 `pwd`/data/input1.txt
```
6 changes: 6 additions & 0 deletions problems/aoc2022day4/data/input0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
2-4,6-8
2-3,4-5
5-7,7-9
2-8,3-7
6-6,4-6
2-6,4-8
Loading