We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c45680 commit 1cf052cCopy full SHA for 1cf052c
contains-duplicate/minji0214.ts
@@ -3,8 +3,9 @@ function containsDuplicate(nums: number[]): boolean {
3
for(let i = 0; i< nums.length; i ++ ){
4
if(nums.findIndex((value)=> value === nums[i]) !== i){
5
answer = true
6
- return false
+ break;
7
}
8
9
return answer
10
-};
+};
11
+//-> time lit 초과 오류 발생
0 commit comments