- https://roadmap.sh/u/beriomind
-
Joined
Apr 16, 2026
This file contains hidden or 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
| class HashTable(): | |
| def __init__(self): | |
| self.MAX = 10 | |
| self.arr = [[] for i in range(self.MAX)] | |
| def get_hash(self, key): | |
| h = 0 | |
| for char in key: | |
| h += ord(char) | |
| return h % self.MAX |
This file contains hidden or 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
| def get_hash(key): | |
| h = 0 | |
| for char in key: | |
| h += ord(char) | |
| return h % 100 | |
| class HashTable(): | |
| def __init__(self): | |
| self.MAX = 100 | |
| self.arr = [None for i in range(self.MAX)] |
This file contains hidden or 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
| class Node: | |
| def __init__(self, data=None, next=None, prev=None): | |
| self.data = data | |
| self.next = next | |
| self.prev = prev | |
| class DoublyLinkedList: | |
| def __init__(self): | |
| self.head = None |
This file contains hidden or 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
| class Node: | |
| def __init__(self, data=None, next=None): | |
| self.data = data | |
| self.next = next | |
| class LinkedList: | |
| def __init__(self): | |
| self.head = None | |
| def insert_at_beginning(self, data): |
This file contains hidden or 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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # Environments | |
| .venv/ | |
| venv/ | |
| ENV/ | |
| env/ |