-
Notifications
You must be signed in to change notification settings - Fork 5.2k
LinkList
Mission Peace edited this page Oct 11, 2016
·
5 revisions
- Add two numbers represented by link list - AddNumberRepresentedByLinkList.java
- Create a copy of a link list in which one pointer points to next node while other pointer can point to any node in the list - CopyLinkListWIthArbitPointer.java
- Given a linklist, delete m nodes after every n nodes - DeleteNAfterMNodes.java
- Delete nodes which has greater value on right side - DeleteNodeWithGreaterValueOnRight.java
- Given a linklist in which down pointer could point to another linklist and this happens recursively, flatten this linklist - FlattenLinkList.java
- Implement a LRU cache using linklist and map - LRUCache.java
- Basic link list structure - LinkList.java
- Sort linklist using merge sort - MergeSortLinkList.java
- Quick sort linklist - QuickSortSingleLinkList.java
- Remove duplicates from a sorted linklist - RemoveDuplicatesSortedList.java
- Given a linklist and k,reverse alternate k nodes in the linklist - ReverseAlternateKNodes.java
- Given a linklist, reverse alternate nodes and append it at the end - ReverseAlternateNodeAndAppendAtEnd.java
- Reverse every k nodes in a linklist - ReverseKNodes.java
- Sort a nearly sorted linklist - SortNearlySortedList.java
- Insert into sorted circular linklist - SortedCircularLinkList.java
- Given a sorted linklist, convert it into a balanced binary search tree - SortedLLToBalancedBST.java
- Stack with also support find/delete middle operation - StackWithLinkListMiddleOperation.java
- Given three linklist and a sum, find a triplet from each list which adds up to sum - TripletToSumInLinkList.java
- Insertion sort for link list - InsertionSortLinkList.java
- Double link list - DoubleLinkList.java
- Given two nodes of double link list swap them - SwapTwoNodesInDoubleLL.java
- Given a linklist, return true if elements form a palindrome or not - LinkListIsPalindrome.java
- Multiply two numbers given in form of linklist. Result should also be linklist - MultiplyTwoNumbersLinkList.java
- Convert linklist to complete binary tree - LinkListToCompleteBinaryTree.java
- Given a linklist, find middle element of the linklist - MiddleElementOfLinkList.java
- Shuffle merge linklist - ShuffleMerge.java
- Given a linked list of co-ordinates where adjacent points either form a vertical line or a horizontal line. Delete points from the linked list which are in the middle of a horizontal or vertical line.RemoveMiddleElementsOfLineSegment.java
- Find if there is a loop in linklist LoopInLinkList.java
- Given two sorted linked lists, construct a linked list that contains maximum sum path from start to end. The result list may contain nodes from both input lists. MergeForLargestSum.java
- Given sorted linklist, delete all nodes which are duplicate - DeleteDuplicateNodes.java
- Flatten 2D list - Flatten2DList.java
- Rotate list - RotateList.java