Love it!! Finally understood!! It would be nice if you explained that in a loop, using odd ^= array[i] would do the whole operation and give the proper result... I didn't really understand that. Thanks!
int numberOccursOddNumberOfTimes(int[] input) { int number = input[0]; for (int i = 1; i < input.length; i++) { number = number ^ input[i]; } return number; }
upload more video Sir please related to the tree traverse lower to higher and also upload the operator and looping when use which loop condition plz Sir
Love it!! Finally understood!! It would be nice if you explained that in a loop, using odd ^= array[i] would do the whole operation and give the proper result... I didn't really understand that. Thanks!
Thanks a lot sir, you are an amazing teacher!
Thank you sir.. Please provide us with its implementing algorithm and also upload more of such helpful videos
awesome explaination!!!!!!!!!!
nice explanation
Thank you! I should have found this channel earlier!!
nice explanation sir
Nice explanation. Would have been more good if you have explained with binary representation.
A very nice explanation. Could you please help me with the code if there are more elements occurring odd number of times?
Thank you very much!!!!
perfect teacher
Great but what if the array contains number that greater than 10? Like 11, 13 and so on
Superb
please explain compareTo should compare sort string
aisa krne se last wali element kaise print hogi wo bhi to leader h...???
best teacher
Even no ke liye kaise banaynge
It can be done in log n using binarysearch
Sir why u are not uploading videos
Hi Sir,
Please make video to find the two numbers with odd occurrences in an unsorted array
What if there are multiple element with odd number of occurrence?
Once you explained logic can you please give whole programme. It will be better in understanding both logic and whole programme at a time. Thank you.
int numberOccursOddNumberOfTimes(int[] input) {
int number = input[0];
for (int i = 1; i < input.length; i++) {
number = number ^ input[i];
}
return number;
}
This program for what for odd occuring times ????
cool man! Thanks!
4 is also occurs odd no of times
4 is two times in 1attempt
5:21 the magic moment :)
thanks for explaning xor works like addition earlier i was confused about its working
Sanket Verma he meant that it is associative in nature
❤️❤️❤️
upload more video Sir please related to the tree traverse lower to higher and also upload the operator and looping when use which loop condition plz Sir
vivekanand ,where is the code for this? Kindly post that also.
Could you please share the code using this XOR logic ?
U can check geekforgeeks
The indian man always know this better than anyone
nice sir
plz posting some new video sir ji
Program sir