Skip to content

Commit c259074

Browse files
authored
Update 0080-remove-duplicates-from-sorted-array-ii.js
Updated time complexity for two pointer approch
1 parent dc1e733 commit c259074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/0080-remove-duplicates-from-sorted-array-ii.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var removeDuplicates = function(nums) {
2626

2727
/**
2828
* Two pointer
29-
* Time O(n) | Space O(1)
29+
* Time O(n^2) | Space O(1)
3030
* @param {number[]} nums
3131
* @return {number}
3232
*/

0 commit comments

Comments
 (0)