Python/data_structures/linked_list
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
..
__init__.py Added an add at position subroutiune to linked list (#9020) 2023-09-08 08:20:28 -04:00
circular_linked_list.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
deque_doubly.py fix(ci): Update pre-commit hooks and apply new black (#4359) 2021-04-26 07:46:50 +02:00
doubly_linked_list_two.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
doubly_linked_list.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
from_sequence.py GitHub Action formats our code with psf/black (#1569) 2019-11-14 19:59:43 +01:00
has_loop.py Replace typing.optional with new annotations syntax (#5829) 2021-11-17 04:43:02 +01:00
is_palindrome.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
merge_two_lists.py change space complexity of linked list's __len__ from O(n) to O(1) (#8183) 2023-04-01 08:26:43 +02:00
middle_element_of_linked_list.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
print_reverse.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
singly_linked_list.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
skip_list.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
swap_nodes.py Create codespell.yml (#1698) 2020-01-18 13:24:33 +01:00