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
{:perf {:latency-graph {:valid? true}, | |
:rate-graph {:valid? true}, | |
:valid? true}, | |
:timeline {:valid? true}, | |
:exceptions {:valid? true}, | |
:stats {:valid? true, | |
:count 826, | |
:ok-count 821, | |
:fail-count 0, | |
:info-count 5, |
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
# Solution to Advent of Code 2022 Day 9 | |
# https://adventofcode.com/2022/day/9 | |
# Tested only in Python 3.11.0 | |
from typing import Tuple | |
class Knot: | |
def __init__(self) -> None: | |
self._position = (0, 0) |