Python/data_structures
Saksham Saha c9b4b8002f
Added an add at position subroutiune to linked list (#9020)
* added addAtPosition to simple linked list

* added addAtPosition to simple linked list

* modified the add function to take an optional position command

* fixed type safety errors:

* fixed type safety errors:

* fixed type safety errors:

* fixed type safety errors:

* fixed size error

* fixed size error

* added doctest and updates the else after checking if posiiton argument less than 0 or not

* added doctest and updates the else after checking if posiiton argument less than 0 or not

* fixed the contributing.md mistake

* added doctest for out of bounds position value, both negative and positive
2023-09-08 08:20:28 -04:00
..
arrays Fix type errors in permutations (#9007) 2023-08-22 02:33:47 -07:00
binary_tree [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
disjoint_set Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
hashing Bloom Filter (#8615) 2023-04-08 19:39:24 +02:00
heap Solving the Top k most frequent words problem using a max-heap (#8685) 2023-04-27 23:02:07 +05:30
linked_list Added an add at position subroutiune to linked list (#9020) 2023-09-08 08:20:28 -04:00
queue Enhance the implementation of Queue using list (#8608) 2023-07-30 19:07:35 -07:00
stacks [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
trie Fix radix_tree.py insertion fail in ["*X", "*XX"] cases (#8870) 2023-07-24 11:29:05 +02:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00