Initial commit
This commit is contained in:
commit
250ed0e40f
6 changed files with 297 additions and 0 deletions
7
helper.py
Normal file
7
helper.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from typing import Iterator
|
||||
|
||||
|
||||
def nth_element(my_iter: Iterator, n: int) -> int:
|
||||
for _ in range(n):
|
||||
next(my_iter)
|
||||
return next(my_iter)
|
Loading…
Add table
Add a link
Reference in a new issue