Skip to content

Commit 705487e

Browse files
authored
GH-96: Solve problem aoc2022day3 (#101)
1 parent c1a65a8 commit 705487e

File tree

20 files changed

+488
-2265
lines changed

20 files changed

+488
-2265
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A data structure is a data organization, management, and storage format that is
3030
<td>Bitwise</td>
3131
<td>
3232
<a href="/concepts/python/bitwise.md"><code>py🐍</code></a>
33-
<a href="/concepts/cpp/bitwise.md"><code>cpp</code></a>
33+
<a href="/concepts/cpp/bitwise.md"><code>cpp🐀</code></a>
3434
</td>
3535
</tr>
3636
<tr>
@@ -76,13 +76,13 @@ A data structure is a data organization, management, and storage format that is
7676
<tr>
7777
<td>Hash Table</td>
7878
<td>
79-
<a href="/concepts/cpp/hash_table.md"><code>cpp</code></a>
79+
<a href="/concepts/cpp/hash_table.md"><code>cpp🐀</code></a>
8080
</td>
8181
</tr>
8282
<tr>
8383
<td>Tree</td>
8484
<td>
85-
<a href="/concepts/cpp/tree.md"><code>cpp</code></a>
85+
<a href="/concepts/cpp/tree.md"><code>cpp🐀</code></a>
8686
</td>
8787
</tr>
8888
<tr>
@@ -91,7 +91,7 @@ A data structure is a data organization, management, and storage format that is
9191
<tr>
9292
<td>Sorting</td>
9393
<td>
94-
<a href="/concepts/cpp/sorting.md"><code>cpp</code></a>
94+
<a href="/concepts/cpp/sorting.md"><code>cpp🐀</code></a>
9595
</td>
9696
</tr>
9797
<tr>
@@ -102,7 +102,7 @@ A data structure is a data organization, management, and storage format that is
102102
<tr>
103103
<td>Brute force, Backtracking</td>
104104
<td>
105-
<a href="/concepts/cpp/brute_force.md"><code>cpp</code></a>
105+
<a href="/concepts/cpp/brute_force.md"><code>cpp🐀</code></a>
106106
</td>
107107
</tr>
108108
<tr>
@@ -113,7 +113,7 @@ A data structure is a data organization, management, and storage format that is
113113
<tr>
114114
<td>Range Queries (prefix sum)</td>
115115
<td>
116-
<a href="/concepts/cpp/range_queries.md"><code>cpp</code></a>
116+
<a href="/concepts/cpp/range_queries.md"><code>cpp🐀</code></a>
117117
</td>
118118
</tr>
119119
<tr>
@@ -122,13 +122,13 @@ A data structure is a data organization, management, and storage format that is
122122
<tr>
123123
<td>Dynamic Programming (Basic)</td>
124124
<td>
125-
<a href="/concepts/cpp/dp_basic.md"><code>cpp</code></a>
125+
<a href="/concepts/cpp/dp_basic.md"><code>cpp🐀</code></a>
126126
</td>
127127
</tr>
128128
<tr>
129129
<td>Dynamic Programming (Intermediate)</td>
130130
<td>
131-
<a href="/concepts/cpp/dp_intermediate.md"><code>cpp</code></a>
131+
<a href="/concepts/cpp/dp_intermediate.md"><code>cpp🐀</code></a>
132132
</td>
133133
</tr>
134134
<tr>
@@ -142,7 +142,7 @@ A data structure is a data organization, management, and storage format that is
142142
<tr>
143143
<td>Graph representations</td>
144144
<td>
145-
<a href="/concepts/java/graph.md"><code>java</code></a>
145+
<a href="/concepts/java/graph.md"><code>java</code></a>
146146
<a href="/concepts/typescript/graph.md"><code>ts</code></a>
147147
</td>
148148
</tr>

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,18 @@
2727
</td>
2828
</tr>
2929
<tr>
30+
<td>Day 3</td>
31+
<td><a href="https://adventofcode.com/2022/day/3">Link</a></td>
32+
<td>
33+
<a href="../../problems/aoc2022day3/src/main/solution1.cpp"><code>cpp🐀</code></a>
34+
</td>
35+
<td>
36+
<a href="../../problems/aoc2022day3/src/main/solution2.cpp"><code>cpp🐀</code></a>
37+
</td>
38+
</tr>
39+
<tr>
3040
<td>Day 2</td>
31-
<td><a href="https://adventofcode.com/2022/day/1">Link</a></td>
41+
<td><a href="https://adventofcode.com/2022/day/2">Link</a></td>
3242
<td>
3343
<a href="../../problems/aoc2022day2/src/main/solution1.cpp"><code>cpp🐀</code></a>
3444
</td>
@@ -40,10 +50,10 @@
4050
<td>Day 1</td>
4151
<td><a href="https://adventofcode.com/2022/day/1">Link</a></td>
4252
<td>
43-
<a href="../../problems/aoc2022day1/src/main/solution1.cpp"><code>cpp 🐀</code></a>
53+
<a href="../../problems/aoc2022day1/src/main/solution1.cpp"><code>cpp🐀</code></a>
4454
</td>
4555
<td>
46-
<a href="../../problems/aoc2022day1/src/main/solution2.cpp"><code>cpp 🐀</code></a>
56+
<a href="../../problems/aoc2022day1/src/main/solution2.cpp"><code>cpp🐀</code></a>
4757
</td>
4858
</tr>
4959
</tbody>

problems/aoc2022day3/.gitginore

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

problems/aoc2022day3/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/aoc2022day3/data/input0.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
vJrwpWtwJgWrhcsFMMfFFhFp
2+
jqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL
3+
PmmdzqPrVvPwwTWBwg
4+
wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn
5+
ttgJtRGJQctTZtZT
6+
CrZsJsPPZsGzwwsLwLmpwMDw

0 commit comments

Comments
 (0)