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

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 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.