Binary Exponentiation : Iterative Method | CP Course | EP 54.2

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

КОМЕНТАРІ • 69

  • @Ankitkumar-gc5cc
    @Ankitkumar-gc5cc 3 роки тому +23

    Thank you for this video, i had learned this from gfg yesterday only but i was not getting why there is n =n/2, which was basically right shift :-)

  • @codethings271
    @codethings271 3 роки тому +3

    All your tutorials are best keep em coming

  • @RaghavSharma-nt3hr
    @RaghavSharma-nt3hr 3 роки тому +2

    Great content!! Amazing Explanation!!
    Don't know why or how I understand every concept explained in your video so quickly, compared to watching other DSA/CP videos on yt.

  • @bitwits363
    @bitwits363 3 роки тому +2

    One word : GOLD

  • @md_ashraf6455
    @md_ashraf6455 3 роки тому +3

    1st viewer.
    1st commenter.
    You are the best UA-camer

  • @UserUser-tn8tv
    @UserUser-tn8tv 3 роки тому

    Thank you for this wonderful course.
    Please be consistent as you are because many of the students like me are totally dependent on your videos for competitive programming.

  • @avinashgarg7894
    @avinashgarg7894 2 роки тому +1

    Thanku so much sir for this explanation. Thanku from Bihar

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

    Adbhuut explanation, I really like it :)

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

    You are teaching amazingly!

  • @178fahimahmed7
    @178fahimahmed7 3 роки тому +2

    As Always , Awesome ❤❤❤

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

    Great one!

  • @utkarshjha9087
    @utkarshjha9087 3 роки тому +11

    Hey, will you be covering topics like linked lists, DP, graphs etc as well?

    • @iamluv
      @iamluv  3 роки тому +16

      dp and graphs , i will be covering. linked list no

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

    Nice explanation bhayiya

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

    best explanation 🔥

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

    You are amazing man.

  • @tautikagrahari489
    @tautikagrahari489 3 роки тому +4

    thanks bhaiya, i will be getting into college this year....and so i had completed html css and javascript in class 12...
    i had started following your competitve programming playlist...and its awesome...
    Question: linked list is not for CP and for DSA for placement?

    • @abhikantkumar8833
      @abhikantkumar8833 3 роки тому +2

      Sath me coding karoge, mai isi year college me admission lunga
      Codecheif par mera (3★) hai 😐

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

      @@abhikantkumar8833damn bro... Lets connect on instagram: dekh.liya

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

      @@abhikantkumar8833 lets code together...i needed a coding budy

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

    this video help me a lot so thank you 🙏 😊

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

    Nice course

  • @asishcodes
    @asishcodes 2 роки тому +2

    What is the difference between >> and >>= ?

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

      latter one updates the value too (in the variable)

  • @abhishekkanojia2816
    @abhishekkanojia2816 2 роки тому +1

    konse video editor se edit karte ho bhai?

  • @mayurdas9738
    @mayurdas9738 2 роки тому +1

    whenever you say log(n) complexity, does it mean that log n base 2 complexity? My question is what is the base in "log(n)" complexity

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

    Interest ++

  • @manoor0858
    @manoor0858 2 місяці тому

    for me the iterative approach was easier than recursive
    both were easy but iterative was sooooooooooooooooooooo easy

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

    🔥🔥🔥🔥🔥 ✨ Hard work op

  • @user-fs4yw5zh6o
    @user-fs4yw5zh6o Рік тому

    what if A is negative number ? or post applying bin exp the output is negative? The given solution wont work for A : -1
    B : 1
    M : 20

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

    superb bro

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

    🤩🤩 Thank you 😊😊😊

  • @venkat.sairam
    @venkat.sairam 2 роки тому

    but , when did we convert b to binary

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

    love you man

  • @than0s869
    @than0s869 2 роки тому +1

    ❤ nice bro

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

    Thank you ❤️🙏

  • @devkumar9889
    @devkumar9889 3 роки тому +2

    Is long challenge me Binary exponention ka use tha 😶

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

    great steps

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

    God bless you

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

    Maja aa gaya bhiya

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

    Thank you.

  • @sbhm_prksh03
    @sbhm_prksh03 10 місяців тому

    thanks buddy

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

    thanks bhaiya

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

    when you are saying log b it mean log(b) at base 2 ?? because generally logb is assumed as of base 10

    • @g3488z
      @g3488z 2 роки тому +2

      The base of log is determined by how much the problem is getting divided in each step. If n/2 or n*2, it is log base 2. If n/7 or n*7, it is log base 7. So, log will have different base for different algorithms based on how we multiply/divide the input. It is not same as the assumption of maths to take base 10 always.

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

    thanks bro

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

    Amazing

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

    Bhai dsa ke liye useful hai Playlist?

  • @epicspree6279
    @epicspree6279 3 роки тому +5

    first view

  • @FaisalKhan-oy4zz
    @FaisalKhan-oy4zz 3 роки тому +3

    How the Time complexity will be O(log(b)) and not O(b) ?
    Plzz explain anyone!

    • @iamluv
      @iamluv  3 роки тому +8

      because b is getting divided by 2 and while loop will run until b becomes 0, hence while loop will run log(b) times which is our time complexity

    • @FaisalKhan-oy4zz
      @FaisalKhan-oy4zz 3 роки тому +2

      @@iamluv thank you sir

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

    hackerearch ke practice question accessible nahi hai... anybody with same issue?

  • @aashreykumar9886
    @aashreykumar9886 11 місяців тому

    why are we doing mod

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

    link of ques in description of hackerearth is not working

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

      hackerearth issues, cant do much

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

    video sponsered by "BALAJI EXCLUSIVE"

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

    Rukna mat bhaiya

  • @SnehJoshi19
    @SnehJoshi19 3 роки тому +4

    Bloopers kha h ?

    • @iamluv
      @iamluv  3 роки тому +2

      have stopped adding them

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

    in python just do this
    a^b%mod = pow(a,b,mod)
    LOL.

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

    ❤️

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

    I love you

  • @SameerKumar-xy8ky
    @SameerKumar-xy8ky 2 роки тому

    💛💛💛

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

    this code was giving tle lol

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

    ❤️❤️

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

    Waha %M kyu aaya anyone