Skip to content

Commit 3f2eb0e

Browse files
authored
Update find duplicate.cpp
1 parent 9bacc94 commit 3f2eb0e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

find duplicate.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ int MissingNumber(int arr[], int size){
99
if(arr[i]==arr[j])
1010
return arr[i];
1111
}
12-
}
13-
12+
}
1413
}
1514
int main() {
16-
1715
int size;
1816
cin>>size;
1917
int * input=new int[1+size];
20-
2118
for(int i=0;i<size;i++)
2219
cin>>input[i];
23-
2420
cout<<MissingNumber(input,size);
2521

2622
return 0;

0 commit comments

Comments
 (0)