Majority Element in an array (Algorithm)

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

КОМЕНТАРІ • 27

  • @Bakepichai
    @Bakepichai 7 років тому +23

    Your videos are good. But this video doesn't have any meaning content as the actual algorithm is not discussed.

  • @deadmarshal
    @deadmarshal 3 роки тому +1

    Where is the code for this video?

  • @akhilvenkat9406
    @akhilvenkat9406 6 років тому +1

    Can you explain algorithm for travelling Salesman problem?

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

    you should show edge case where the timelimit for run requires an optimized solution rather than a brute force run through every element and just add to the hash table also you should show a coded version of this in use i would recommend javascript

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

    You should discuss more, and write the code also.

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

    CODE NOT AVAILABLE

  • @varunnarayanan8720
    @varunnarayanan8720 4 роки тому +1

    Sir here you should have discussed Boyer Moore's algorithm.

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

    Sir please explain how to print all subsets of a given set

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

    Hello and thanks for your tutorial! I would like to know, what is the worst case complexity for this algorithm?

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

      George Petropoulos you definitely mocking him😂

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

      O(n) since we are tracing through all the elements once. where n is the size of the array.

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

      It takes O(n) time and O(n) space because it is implementing a HashTable for storing count values, the best solution for this problem is the Moore's voting algorithm, which takes O(n) time and O(1) space

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

    where is the algorithm?

  • @resourceengine6890
    @resourceengine6890 6 років тому +1

    hello sir,
    I loved ur videos..
    could you please do a code trace out of Dijkstra .. algorithm for finding shortest path

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

    hi 2 occurs 3 times in the second example

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

    #Please sir # kindly also give the program by using 1d and 2d array in Java script.

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

    sir plz solve full algorithm as for beginners it would be more fruitful.

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

    Hello! I love your videos and I've learn a lot with them :), could you please make a video explaining self balancing binary search trees?

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

      Thanks Alextormt.........will do a video on self balancin binary search tree...!

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

      ​@@vivekanandkhyadeif I take 1,2,3,3,4,5,6,

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

    make video on trie

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

      Thanks shashank....will sure make the video on trie..!

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

    This is stupid!! I thought he was explaining the complex algorithm. Naive algorithm anyone can look up online.

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

    ye kya time waste kiya humara