Single Number | LeetCode problem 136

preview_player
Показать описание
Single Number
Leetcode problem number 136
Solution in JAVA

JAVA interview programming playlist:

#java #interviewquestions #leetcode
Рекомендации по теме
Комментарии
Автор

i felt that need much details or explanation about value=value^nums[i] line

SathiyaPriya-de
Автор

What if array contains single 0 at 0th index, when we doing XOR with value =0 initially it may consider it as a duplicate number

saikumar
Автор

Consider value = arr[0]; and start the loop from i=1;

BhaskarSinghBhakuni
Автор

can u please dry run the program after giving the solution..

PranavGupta-ff
Автор

Hi,
What if each element occurs thrice in an array And find the unique element in the array?.
What will be the approach. Can u give brief explanation if possible?.

cheerlachinnikrishnasai
Автор

explain a little bit slow. rather than that good explanation

arohitsharmafan