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
"""Python3 function to search a given key in a given BST.""" | |
class Node: | |
left: 'Node' = None | |
right: 'Node' = None | |
def __init__(self, key): | |
self.key = key |
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
"""Circular linked list python implementation.""" | |
from typing import Generator, Generic, Iterable, Protocol, Sized, TypeVar | |
class EqProtocol(Protocol): | |
"""Protocol with eq method.""" | |
def __eq__(self, __value: object) -> bool: ... # noqa |
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
import asyncio | |
from memory_profiler import profile | |
SIZE = 100000 | |
@profile | |
async def ensure_test(): | |
loop = asyncio.get_running_loop() |
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
from collections import deque | |
def arange(stop): | |
for i in range(1, stop + 1, 1): | |
print(i, "/", stop) | |
yield | |
else: | |
return i |
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
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- test | |
- deploy |
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
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
- test | |
- deploy |