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

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 39

  • @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!

  • @reyou7
    @reyou7 5 років тому +3

    Thanks a lot sir, you are an amazing teacher!

  • @tapanjeetroy8266
    @tapanjeetroy8266 5 років тому +1

    Thank you sir.. Please provide us with its implementing algorithm and also upload more of such helpful videos

  • @praveenchouhan6388
    @praveenchouhan6388 4 роки тому

    awesome explaination!!!!!!!!!!

  • @shaileshpatil6416
    @shaileshpatil6416 Рік тому

    nice explanation

  • @RamisaAnjum
    @RamisaAnjum 4 роки тому

    Thank you! I should have found this channel earlier!!

  • @_DuongMinhLong
    @_DuongMinhLong Рік тому

    nice explanation sir

  • @ManojKumar-007
    @ManojKumar-007 3 роки тому

    Nice explanation. Would have been more good if you have explained with binary representation.

  • @abhasahu2712
    @abhasahu2712 4 роки тому

    A very nice explanation. Could you please help me with the code if there are more elements occurring odd number of times?

  • @tomasz3925
    @tomasz3925 6 років тому

    Thank you very much!!!!

  • @ykoc3879
    @ykoc3879 2 роки тому

    perfect teacher

  • @26kito
    @26kito 2 роки тому

    Great but what if the array contains number that greater than 10? Like 11, 13 and so on

  • @abhrakar3967
    @abhrakar3967 7 років тому +1

    Superb

  • @alluraiaht4770
    @alluraiaht4770 4 роки тому

    please explain compareTo should compare sort string

  • @pkjhabihar
    @pkjhabihar 4 роки тому

    aisa krne se last wali element kaise print hogi wo bhi to leader h...???

  • @Vishal-nc8ju
    @Vishal-nc8ju 5 років тому

    best teacher

  • @naziaashraf7595
    @naziaashraf7595 2 роки тому

    Even no ke liye kaise banaynge

  • @HarshaVardhan-jf9sd
    @HarshaVardhan-jf9sd 5 років тому

    It can be done in log n using binarysearch

  • @Pritamdas-bg7fp
    @Pritamdas-bg7fp 4 роки тому

    Sir why u are not uploading videos

  • @krishnashejul6418
    @krishnashejul6418 3 роки тому

    Hi Sir,
    Please make video to find the two numbers with odd occurrences in an unsorted array

  • @saheb140
    @saheb140 6 років тому

    What if there are multiple element with odd number of occurrence?

  • @akhileshasare
    @akhileshasare 7 років тому +1

    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 ????

  • @jharolsalvadorrivera4464
    @jharolsalvadorrivera4464 4 роки тому

    cool man! Thanks!

  • @lailasanthi7598
    @lailasanthi7598 5 років тому +2

    4 is also occurs odd no of times

  • @sanketkumar1576
    @sanketkumar1576 7 років тому +1

    thanks for explaning xor works like addition earlier i was confused about its working

    • @aman9th
      @aman9th 7 років тому +1

      Sanket Verma he meant that it is associative in nature

  • @karan6551
    @karan6551 4 роки тому

    ❤️❤️❤️

  • @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

  • @gurmeetchawla8362
    @gurmeetchawla8362 6 років тому

    vivekanand ,where is the code for this? Kindly post that also.

    • @tommyjason5035
      @tommyjason5035 6 років тому

      Could you please share the code using this XOR logic ?

    • @banibindal
      @banibindal 5 років тому

      U can check geekforgeeks

  • @emmaseay4068
    @emmaseay4068 4 роки тому

    The indian man always know this better than anyone

  • @jaysahu357
    @jaysahu357 7 років тому

    nice sir

  • @ruchirsingh3635
    @ruchirsingh3635 7 років тому

    plz posting some new video sir ji

  • @pavanchennur8411
    @pavanchennur8411 6 років тому

    Program sir