Python/data_structures/linked_list
Muhammad Umer Farooq bacad12a1f
[NEW ALGORITHM] Rotate linked list by K. (#9278)
* Rotate linked list by k.

* Rotate linked list by k.

* updated variable name.

* Update data_structures/linked_list/rotate_linked_list_by_k.py

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

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

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

* Update data_structures/linked_list/rotate_linked_list_by_k.py

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

* Update data_structures/linked_list/rotate_linked_list_by_k.py

* Make Node a dataclass

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-01 18:11: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 [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
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 [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