This is my attempt at solving the Advent of Code 2022 puzzles in the shortest possible code using Dart 3.0
.
You can find the solution in /bin
.
Restrictions this year:
- No external dependencies (except for
package:collection
) - Never use
class
, force learning functional style with Records
Checkout my solutions of previous years:
- 2022 Dart - code golf https://github.com/passsy/aoc22_dart_code_golf
- 2019 Dart https://github.com/passsy/dart-aoc19
- 2018 Dart https://github.com/passsy/dart-aoc18
- 2017 Kotlin https://github.com/passsy/kotlin-advent-of-code/tree/master/2017
- 2016 Kotlin https://github.com/passsy/kotlin-advent-of-code/tree/master/2016
- 2015 Kotlin https://github.com/passsy/kotlin-advent-of-code/tree/master/2015
Copyright 2022 Pascal Welsch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.