Leetcode 540. Single Element in a Sorted Array [Java]

preview_player
Показать описание
Single Element in a Sorted Array leetcode question explained.

Please write in the comments below which leetcode problem you want me to solve next.

And remember, a leetcode a day keeps unemployment away!

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Wow, seems very easy after you patiently explain it. Some other solutions on youtube just made it look very complex, but you have done a great job. Thanks = subscribed.

superanshul
Автор

int xor = 0;

for(int val : nums){
xor ^= val;
}

return xor;

JyotismanBehera-wvru
join shbcf.ru