Fixed linter errors

pull/969/head
Pranav-Rustagi 2022-10-07 11:10:16 +05:30
parent 74d100eaf7
commit d50e33e1da
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// Problem: Given an array of integers,
// Problem: Given an array of integers,
// every element appears twice except for one. Find that single one.
// Space Complexity: O(1)
// Time Complexity: O(n)
@ -6,7 +6,7 @@
function singleOccurringElement(arr) {
let result = 0;
for (const el of arr) {
result ^= el;
result ^= el;
}
return result;
}