Find the number which occurs odd number of times in an Array

  Рет қаралды 31,030

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

7 жыл бұрын

Find the number which occurs odd number of times in an Array. The appearance of the number or the element or the character is odd number of times.

Пікірлер: 39
@_DuongMinhLong
@_DuongMinhLong 9 ай бұрын
nice explanation sir
@davidcsidavidcsi
@davidcsidavidcsi 4 жыл бұрын
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!
@shaileshpatil6416
@shaileshpatil6416 11 ай бұрын
nice explanation
@reyou7
@reyou7 5 жыл бұрын
Thanks a lot sir, you are an amazing teacher!
@tapanjeetroy8266
@tapanjeetroy8266 5 жыл бұрын
Thank you sir.. Please provide us with its implementing algorithm and also upload more of such helpful videos
@tomasz3925
@tomasz3925 6 жыл бұрын
Thank you very much!!!!
@RamisaAnjum
@RamisaAnjum 4 жыл бұрын
Thank you! I should have found this channel earlier!!
@praveenchouhan6388
@praveenchouhan6388 4 жыл бұрын
awesome explaination!!!!!!!!!!
@abhasahu2712
@abhasahu2712 3 жыл бұрын
A very nice explanation. Could you please help me with the code if there are more elements occurring odd number of times?
@yunuskocatas3879
@yunuskocatas3879 2 жыл бұрын
perfect teacher
@jharolsalvadorrivera4464
@jharolsalvadorrivera4464 4 жыл бұрын
cool man! Thanks!
@abhrakar3967
@abhrakar3967 7 жыл бұрын
Superb
@ManojKumar-007
@ManojKumar-007 2 жыл бұрын
Nice explanation. Would have been more good if you have explained with binary representation.
@HarshaVardhan-jf9sd
@HarshaVardhan-jf9sd 4 жыл бұрын
It can be done in log n using binarysearch
@Vishal-nc8ju
@Vishal-nc8ju 5 жыл бұрын
best teacher
@saheb140
@saheb140 5 жыл бұрын
What if there are multiple element with odd number of occurrence?
@pratapsingh-le2br
@pratapsingh-le2br 5 жыл бұрын
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
@krishnashejul6418
@krishnashejul6418 3 жыл бұрын
Hi Sir, Please make video to find the two numbers with odd occurrences in an unsorted array
@jaysahu357
@jaysahu357 6 жыл бұрын
nice sir
@kito2266
@kito2266 Жыл бұрын
Great but what if the array contains number that greater than 10? Like 11, 13 and so on
@sanketkumar1576
@sanketkumar1576 7 жыл бұрын
thanks for explaning xor works like addition earlier i was confused about its working
@aman9th
@aman9th 7 жыл бұрын
Sanket Verma he meant that it is associative in nature
@pkjhabihar
@pkjhabihar 4 жыл бұрын
aisa krne se last wali element kaise print hogi wo bhi to leader h...???
@karan6551
@karan6551 3 жыл бұрын
❤️❤️❤️
@alluraiaht4770
@alluraiaht4770 4 жыл бұрын
please explain compareTo should compare sort string
@naziaashraf7595
@naziaashraf7595 Жыл бұрын
Even no ke liye kaise banaynge
@akhileshasare
@akhileshasare 6 жыл бұрын
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.
@yohanneskiros3873
@yohanneskiros3873 6 жыл бұрын
int numberOccursOddNumberOfTimes(int[] input) { int number = input[0]; for (int i = 1; i < input.length; i++) { number = number ^ input[i]; } return number; }
@karthikp601
@karthikp601 5 жыл бұрын
This program for what for odd occuring times ????
@Pritamdas-bg7fp
@Pritamdas-bg7fp 4 жыл бұрын
Sir why u are not uploading videos
@ruchirsingh3635
@ruchirsingh3635 7 жыл бұрын
plz posting some new video sir ji
@emmaseay4068
@emmaseay4068 4 жыл бұрын
The indian man always know this better than anyone
@lailasanthi7598
@lailasanthi7598 5 жыл бұрын
4 is also occurs odd no of times
@seemavatts3576
@seemavatts3576 5 жыл бұрын
4 is two times in 1attempt
@JonasSchulteDE
@JonasSchulteDE 4 жыл бұрын
5:21 the magic moment :)
@gurmeetchawla8362
@gurmeetchawla8362 6 жыл бұрын
vivekanand ,where is the code for this? Kindly post that also.
@tommyjason5035
@tommyjason5035 5 жыл бұрын
Could you please share the code using this XOR logic ?
@banibindal
@banibindal 5 жыл бұрын
U can check geekforgeeks
@pavanchennur8411
@pavanchennur8411 5 жыл бұрын
Program sir
Search an element in sorted and rotated array( Find PIVOT)
25:39
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 28 М.
Staircase Problem (Dynamic Programming) Fibonacci Series pattern
15:06
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 28 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Equilibrium Element in Array in  o(n) time complexity ( Interview Question for FAANG companies)
13:57
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 8 М.
Find missing number in an array(using summation and XOR operation)
8:59
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 42 М.
Cutting a rod into pieces to maximize Profit (Dynamic Programming)
28:49
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 60 М.
Codility  - Odd Occurances In Array (JavaScript)
17:25
FRESH CODE SODA
Рет қаралды 1,7 М.
Minimum Edit distance (Dynamic Programming) for converting one string to another string
28:22
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 145 М.
Vertical Order Traversal of a Binary tree (Algorithm)
18:35
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 71 М.
Add two numbers represented by linked lists
16:26
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 65 М.