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
// ignore_for_file: avoid_print | |
// Copyright 2022 LastMonopoly@outlook.com. All rights reserved. | |
// Solution to https://adventofcode.com/2018/day/10 | |
void main() => solve(getInput()); | |
void solve(List<String> input) { | |
List<Point> points = parsePoints(input); | |
// Find out when the area size is the smallest within the first 100,000 seconds |
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
// ignore_for_file: avoid_print | |
// Copyright 2022 LastMonopoly@outlook.com. All rights reserved. | |
// Solution to https://adventofcode.com/2021/day/10 | |
void main() => solveSecondHalf(getInput()); | |
void solveSecondHalf(List<String> input) { | |
List<int> scores = []; | |
List<String> completions = []; | |
for (String line in input) { |