Python/data_structures/linked_list
Sai Harsha Kottapalli 12e8e9ca87
Add DocTests to is_palindrome.py (#10081)
* add doctest ut

* test complete

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* format

* ruff update

* cover line 154

* Update data_structures/linked_list/is_palindrome.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* use dataclass

* pre-commit fix

* Fix mypy errors

* use future annotations

---------

Co-authored-by: Harsha Kottapalli <skottapalli@microsoft.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-10-09 14:06:16 +02: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 Fix mypy errors in circular_linked_list.py and swap_nodes.py (#9707) 2023-10-04 18:05:00 +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 Add DocTests to is_palindrome.py (#10081) 2023-10-09 14:06:16 +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 print reverse: A LinkedList with a tail pointer (#9875) 2023-10-06 10:55:13 +13:00
reverse_k_group.py add reverse k group linkedlist (#9323) 2023-10-02 02:19:39 +02:00
rotate_to_the_right.py [NEW ALGORITHM] Rotate linked list by K. (#9278) 2023-10-01 18:11:16 +02:00
singly_linked_list.py Use dataclasses in singly_linked_list.py (#9886) 2023-10-06 15:31:11 +13:00
skip_list.py Make some ruff fixes (#8154) 2023-03-01 17:23:33 +01:00
swap_nodes.py Fix mypy errors in circular_linked_list.py and swap_nodes.py (#9707) 2023-10-04 18:05:00 +02:00