Skip to content

Commit 5436659

Browse files
correct time complexity for 1200
1 parent a1f7ff6 commit 5436659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fishercoder/solutions/_1200.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public class _1200 {
3535
public static class Solution1 {
3636
/**
37-
* Time: O(n)
37+
* Time: O(nlogn) due to sorting
3838
* Space: O(k) where k is the distinct number of differences between two numbers in the given array
3939
* */
4040
public List<List<Integer>> minimumAbsDifference(int[] arr) {

0 commit comments

Comments
 (0)