Skip to content

Commit 4debfa5

Browse files
remove duplicates from sorted array
1 parent ae40165 commit 4debfa5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Brute: Store in a set
2+
Optimal: Two pointers, one to iterate and one to store the index of the last unique element
3+
4+
5+
https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/

0 commit comments

Comments
 (0)