This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package advent_2021.day12; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.*; | |
public class Day12 { | |
public static void main(String[] args) throws FileNotFoundException { | |
File file = new File("day12.csv"); | |
// File file = new File("sample.csv"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package advent_2021.day11; | |
import java.io.File; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Scanner; | |
public class Day11 { | |
public static void main(String[] args) { | |
File file = new File("day11.csv"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package advent_2021.day10; | |
import java.io.File; | |
import java.util.*; | |
public class Day10 { | |
public static void main(String[] args) { | |
File file = new File("day10.csv"); | |
// File file = new File("sample.csv"); | |
// sample part 1: 26397 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package advent_2021.day9; | |
import java.io.File; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
public class Day9 { | |
public static void main(String[] args) { | |
File file = new File("day9.csv"); | |
// File file = new File("sample.csv"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package advent_2021.day8; | |
import java.io.File; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class Day8 { | |
public static void main(String[] args) { | |
File file = new File("day8.csv"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Day4 { | |
public static void main(String[] args) { | |
File day3File = new File("<INSERT FILE HERE>"); | |
Day4 day4 = new Day4(); | |
try (Scanner myReader = new Scanner(day3File)) { | |
int line = 0; | |
int boardId = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Grimsel pass, Switzerland | |
2. Mallorca, Spain | |
3. Tre cime di lavaredo, Italy | |
4. Klaune national park, Canada | |
5. Puez geisler nature park, Italy | |
6. Brittany, France | |
7. High tatras mountains, Slovakia | |
8. Cathedral grove, Canada | |
9. Cape Town, South Africa | |
10. Mt rinjani, Indonesia |