From fa4bb4595e20cedb9530562ad10262c608f36de9 Mon Sep 17 00:00:00 2001 From: poonamraghuvanshi Date: Sat, 3 Dec 2022 21:48:50 +0100 Subject: [PATCH] remove duplicate is added. --- algorithms/Java/linked-lists/RemoveDuplicateLL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms/Java/linked-lists/RemoveDuplicateLL.java b/algorithms/Java/linked-lists/RemoveDuplicateLL.java index 072cd7fc..73e83ab0 100644 --- a/algorithms/Java/linked-lists/RemoveDuplicateLL.java +++ b/algorithms/Java/linked-lists/RemoveDuplicateLL.java @@ -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)