Skip to content

Commit ab81fa7

Browse files
committed
Adjust prev solutions of Advent of code a bit
1 parent ac4d38d commit ab81fa7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/main/java/by/andd3dfx/game/IWasToldThereWouldBeNoMath.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* A present with dimensions 1x1x10 requires 2*1 + 2*10 + 2*10 = 42 square feet of wrapping paper plus 1 square foot of slack, for a total of 43 square feet.
2626
*
2727
* All numbers in the elves' list are in feet. How many total square feet of wrapping paper should they order?
28+
*
29+
* Your puzzle answer was 1598415.
2830
* </pre>
2931
*
3032
* @see <a href="https://youtu.be/RRyUtaNnntI">Video solution</a>

src/main/java/by/andd3dfx/game/NotQuiteLisp.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* ))) and )())()) both result in floor -3.
3333
*
3434
* To what floor do the instructions take Santa?
35+
*
36+
* Your puzzle answer was 74.
3537
* </pre>
3638
*
3739
* @see <a href="https://youtu.be/7En4RJa6384">Video solution</a>
@@ -57,12 +59,12 @@ public static int determineFloor(String input) {
5759

5860
@SneakyThrows
5961
public static void main(String[] args) {
60-
var inputString = readFromInputStream("/game/not-quite-lisp.txt");
62+
var inputString = read("/game/not-quite-lisp.txt");
6163
var result = determineFloor(inputString);
6264
System.out.println(result);
6365
}
6466

65-
private static String readFromInputStream(String filePathName) throws IOException {
67+
private static String read(String filePathName) throws IOException {
6668
InputStream inputStream = NotQuiteLisp.class.getResourceAsStream(filePathName);
6769
var resultStringBuilder = new StringBuilder();
6870
try (var br = new BufferedReader(new InputStreamReader(inputStream))) {

src/main/java/by/andd3dfx/game/SecretEntrance.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
* Be careful: if the dial were pointing at 50, a single rotation like R1000 would cause the dial to point at 0 ten times before returning back to 50!
105105
*
106106
* Using password method 0x434C49434B, what is the password to open the door?
107+
*
108+
* Your puzzle answer was 6496.
107109
* </pre>
108110
*
109111
* @see <a href="https://youtu.be/NGsUsBGIrYA">Video solution, part 1</a>

0 commit comments

Comments
 (0)