implemented CycleDetectionII code in LinkedList (#1482)

* implemented CycleTectionII code

* changes made per review by appgurueu

* made the changes per review by appgurueu

* changes made per review by appgurueu

* did some changes

* fixed the test file with prettier

* Simplify code, renames for clarity

---------

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
This commit is contained in:
Akshay Chavan
2024-01-04 18:19:13 +05:30
committed by GitHub
parent 1b66d86bd7
commit 5a7e8d1325
3 changed files with 97 additions and 0 deletions

View File

@ -82,6 +82,7 @@
* **Linked-List**
* [AddTwoNumbers](Data-Structures/Linked-List/AddTwoNumbers.js)
* [CycleDetection](Data-Structures/Linked-List/CycleDetection.js)
* [CycleDetectionII](Data-Structures/Linked-List/CycleDetectionII.js)
* [DoublyLinkedList](Data-Structures/Linked-List/DoublyLinkedList.js)
* [MergeTwoSortedLinkedLists](Data-Structures/Linked-List/MergeTwoSortedLinkedLists.js)
* [ReverseSinglyLinkedList](Data-Structures/Linked-List/ReverseSinglyLinkedList.js)