remove duplicate is added.

pull/1094/head
poonamraghuvanshi 2022-12-03 21:48:50 +01:00
parent fecde19988
commit fa4bb4595e
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class RemoveDuplicateLL {
}
/* To sort remove the duplicates from the linkedlist it would be better to sort it in O(n logn)*/
/* Sort the list using merge sort it O(n logn)*/
Node sortedMerge(Node first, Node second) {
Node result;
if (first == null)