AlgoTalks Episode - 3! || Bit Manipulation: A Deep Dive

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

КОМЕНТАРІ • 8

  • @aaravarya4406
    @aaravarya4406 Рік тому +5

    I was really mesmerized with counting the inversion through bits, woww!

  • @Nothing-eg9ol
    @Nothing-eg9ol Рік тому +3

    please make 3/4 videos on GRAPH + TREE only problem solving general tricks and tips some common patterns

  • @garv1202
    @garv1202 Рік тому +1

    Thank you very much for this ...
    Please keep posting more on CP

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

    A plate of maggi and this episode, enjoying and learning at the same time
    name a better combo Harisam, I’ll wait 😂

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

    Sir, I understand the concept that to get x we check for each bit by checking if this bit was 0 we will get how many inversion and if bit was 1 we will get how many inversions but unable to understand the divide and conquer part that why are we dividing the approach ?

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

    Why we are checking for only 2 and 3.....and not for the size more than 3....
    ???

    • @Harisamsharma
      @Harisamsharma  Рік тому +1

      that is because, if we can get some 'n' equal elements, then we can also get n-2 equal elements as explained, so if n is odd, you can keep going to n-2 to reach 3 and if n is even, you can keep going to n-2 to reach 2.