Skip to content

Commit d0fd78f

Browse files
authored
Merge pull request zapellass123#469 from padmarampatel/patch-2
remove duplicates from shorted array
2 parents 8ed6542 + c8f11a5 commit d0fd78f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

removeDuplicatess.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class Solution {
2+
public int removeDuplicates(int[] nums) {
3+
int temp = 0;
4+
int last = nums.length;
5+
for (int a=0; a< nums.length-1; a++){
6+
7+
for(int b=a+1; b< nums.length; b++){
8+
if(nums[a] == nums[b]){
9+
10+
11+
}
12+
13+
}
14+
15+
}
16+
17+
}
18+
}

0 commit comments

Comments
 (0)