You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@
15
15
### LinkedList Problems
16
16
| Problem | Solution |
17
17
| :------------ | :----------: |
18
-
| Find the nth node of linked list from last. |[nthToLastNode.cpp](linked_list_problems/nthToLastNode.cpp) |
19
-
| Add numbers where each digit of the number is represented by node of a linkedlist. Give output as a linked list. |[add_two_numbers_lists.cpp](linked_list_problems/add_two_numbers_lists.cpp) |
20
-
| Swap nodes of a linkedlist without swapping data. |[swapNodesWithoutSwappingData.cpp](linked_list_problems/swapNodesWithoutSwappingData.cpp)|
18
+
| Find the nth node of linked list from last. |[nthToLastNode.cpp](linked_list_problems/nthToLastNode.cpp)|
19
+
| Add numbers where each digit of the number is represented by node of a linkedlist. Give output as a linked list. |[add_two_numbers_lists.cpp](linked_list_problems/add_two_numbers_lists.cpp)|
20
+
| Swap nodes of a linkedlist without swapping data. |[swapNodesWithoutSwappingData.cpp](linked_list_problems/swapNodesWithoutSwappingData.cpp)|
21
21
| Reverse a linked list, iteratively and recursively |[reverseLinkedListIterAndRecurse.cpp](linked_list_problems/reverseLinkedListIterAndRecurse.cpp)|
22
22
| Given a linked list, reverse alternate nodes and append at the end. |[reverseAlternateNodes.cpp](linked_list_problems/reverseAlternateNodes.cpp)|
23
23
| Only given a node pointer, delete the node from the linked list. |[deleteNode.cpp](linked_list_problems/deleteNode.cpp)|
@@ -28,9 +28,9 @@
28
28
| Determine the intersection(merging) point of two given linked list.|[findIntersectionPointOfLists.cpp](linked_list_problems/findIntersectionPointOfLists.cpp)|
29
29
| Clone a linkedlist which has next and an random pointer, Space Complexity - O(1). |[cloneListWithRandomPtr.cpp](linked_list_problems/cloneListWithRandomPtr.cpp)|
30
30
| Given a sorted linked list with duplicates, remove duplicates in one iteration. |[removeDuplicatesFromSortedList.cpp](linked_list_problems/removeDuplicatesFromSortedList.cpp)|
31
-
| Using Floyd's cycle finding algorithm, detect if a linkedlist contain cycle, if it does contain cycle, remove the loop |[floyedCycleDetection.cpp](linked_list_problems/floyedCycleDetection.cpp) |
32
-
| Sort a linked list using merge sort |[merge_sort.cpp](linked_list_problems/merge_sort.cpp) |
33
-
| Given a singly linked list L<sub>0</sub> -> L<sub>1</sub> -> … -> L<sub>n-1</sub> -> L<sub>n</sub>. Rearrange the nodes in the list (in place) so that the new formed list is : L<sub>0</sub> -> L<sub>n</sub> -> L<sub>1</sub> -> L<sub>n-1</sub> -> L<sub>2</sub> -> L<sub>n-2<sub> ....|[rearrange_list.cpp](linked_list_problems/rearrange_list.cpp)|
31
+
| Using Floyd's cycle finding algorithm, detect if a linkedlist contain cycle, if it does contain cycle, remove the loop |[floyedCycleDetection.cpp](linked_list_problems/floyedCycleDetection.cpp)|
32
+
| Sort a linked list using merge sort |[merge_sort.cpp](linked_list_problems/merge_sort.cpp)|
33
+
| Given a singly linked list L<sub>0</sub> -> L<sub>1</sub> -> … -> L<sub>n-1</sub> -> L<sub>n</sub>. Rearrange the nodes in the list (in place) so that the new formed list is : L<sub>0</sub> -> L<sub>n</sub> -> L<sub>1</sub> -> L<sub>n-1</sub> -> L<sub>2</sub> -> L<sub>n-2<sub> ....|[rearrange_list.cpp](linked_list_problems/rearrange_list.cpp)|
34
34
35
35
### Include
36
36
Include contains single header implementation of data structures and some algorithms.
@@ -40,7 +40,7 @@ Include contains single header implementation of data structures and some algori
40
40
| Generic Macros and Algorithms like swap, random number generation |[generic.h](include/generic.h)|
0 commit comments