diff --git a/README.md b/README.md index 152d5f3..ed04acb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ These are my attempts on [AoC 2022](https://adventofcode.com/2022/) | [04](day04) | ⭐ | ⭐ | Haskell | | [05](day05) | ⭐ | ⭐ | Lua | | [06](day06) | ⭐ | ⭐ | Common Lisp | -| 07 | | | | +| [07](day07) | ⭐ | ⭐ | Java | | 08 | | | | | 09 | | | | | 10 | | | | diff --git a/day07/README.md b/day07/README.md index b32319b..bd89a5f 100644 --- a/day07/README.md +++ b/day07/README.md @@ -1,7 +1,40 @@ -Run with command: +### Build ``` -mvn package && java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input.txt +mvn package ``` +### Run +``` +java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input.txt +``` + +### Read Code is located in `src/main/java/com/felixalb/app/` + +### Sample +``` +$ java -cp target/aoc07-1.0-SNAPSHOT.jar com.felixalb.app.App input_demo.txt [12:16:33] +Lines: 23 +Commands: 10 +/ (48381165) +| a (94853) +| | e (584) +| | | i (584) +| | f (29116) +| | g (2557) +| | h.lst (62596) +| b.txt (14848514) +| c.dat (8504156) +| d (24933642) +| | j (4060174) +| | d.log (8033020) +| | d.ext (5626152) +| | k (7214296) + +Total size: 48381165 + + +Part 1: 95437 +Part 2: 24933642 +```