We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Iterable
Iterator
1 parent 5675ce9 commit eabf084Copy full SHA for eabf084
2021/d01/p2.py
@@ -1,12 +1,12 @@
1
-from typing import Iterator, Iterable
+from typing import Iterable
2
3
from p1 import INPUT_FILE_PATH, get_measurements_from_input, get_depth_measurements_increases
4
5
6
_DEFAULT_WINDOW_SIZE = 3
7
8
9
-def get_measurements_windows(measurements: Iterator[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
+def get_measurements_windows(measurements: Iterable[int], window_size: int = _DEFAULT_WINDOW_SIZE) -> Iterable[
10
tuple[int]]:
11
"""
12
Create sliding windows of measurements and return them.
0 commit comments