Binary Exponentiation : Recursive Method | CP Course | EP 54.1

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

КОМЕНТАРІ • 65

  • @recordforbm2770
    @recordforbm2770 3 роки тому +19

    one of the best tutorial for CP, god level teaching style,

  • @arneishprateek6444
    @arneishprateek6444 2 роки тому +4

    For the modulo exponentiation towards the end, the b&1 case can be further simplified to return (a * res * res) % M instead of what he's doing here.

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

    Thank you 👍🏻 Your videos are absolutely great.Teaching style is pure gold.♥️♥️

  • @md.mahabubalamnishat8738
    @md.mahabubalamnishat8738 3 роки тому +2

    i am watching your video from Jashore University of Science and Technology,Bangladesh.

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

    🎉🎉Nice Explanation & Quality Content

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

    Super cool tutorial. Wish you to see with diversified CP contents in the near future.

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

    Cp looks easy seeing your explanations bhaiya 👌👌
    like your teaching way🙌👏

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

    Well explanation 💯

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

    Nicely explained

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

    thanks bhaiya for this helpful video.
    i literally went through so many videos but wasn't able to find the proper explanation but your video was so simplified and well explanied that i don't have any doubts now.
    thank you sooooooooo much.
    please keep making such simplified and informative videos😊.

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

    Bhaiya apke videos ko dekh ke lagta h ki kas jaldi jaldi aisi videos mil pati taki jaldi jaldi dekh ke sikh pate😔.... Bhaiya thoda aur frequently videos agr possible ho to dalo n ❤️

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

      bhai possible nhi hai.. 2 videos a week is also hectic for me

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

      @@iamluv koi nii bhaiya ye la de rhe yahi bahut h fir toh ❤️ thankyou so much bhaiya ❤️

  • @sahaj-ps
    @sahaj-ps 3 роки тому +17

    bhaiya code chef me aa rakha hai same concept 😃😃😃😃

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

    awesome as always

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

    wow. great content sir. thank you very much.

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

    Great explanation sir

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

    Great bhaiya

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

    Bhaiya nice explanation

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

    Nice video of cp course

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

    when we are talking about log what base are using in Time complexity Usually 2,e or 10.

  • @scorcism.
    @scorcism. Рік тому

    i watched this video 1 week ago now aagain i have to watch this :)

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

    Thanks for this awesome content : )

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

    is there isn't a need of multiplying 1ll after a*....because it can make long number too after multiplying?

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

    Thank You bahiya ! really great

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

    Next matrix exponentiation💓🙏

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

    Can't we do like this func(a * a, b)?

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

    ♥absolutely amazing

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

    thank you !!! it really means a lot

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

    Thanks!

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

    Great explanation💯

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

    should we not return long long as answer????

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

    Thank you very very much

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

    Thank you ❤️👍

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

    Are you using vim

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

    yeh set precision kya hei bhai

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

    Trying since 4 months but not able to solve codeforces div 2 B in contest thinking to leave cp
    What to do??

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

      Chor do , mai bhi 1 months se cp kar rha hu

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

      @@abhikantkumar8833 what is your progress

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

      chor do bhai kisi ko fark thori padta...accha hai aur competition kam ho jyegii....

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

    But we should use only one return na?

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

    But it's very useful when the base and the exponent both are far smaller the totient of the divisor. So binary method is very useful.

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

    if(b == 0)
    return 1;
    if(b == 1)
    return a;
    if(b%2 == 0){
    return po(a*a , b/2);
    }else{
    return po(a*a , b/2)*a;
    }

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

    Thanx bhaiya

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

    Can you make a small video on how to approach or get intuition of problems in contests... It would be helpful🙏💚

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

    Nice video

  • @killerboy-mz9bd
    @killerboy-mz9bd 3 роки тому +1

    bhai Please DSA all topics pe course start kariye
    please🙏

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

    🔥🔥🔥

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

    combinatrics pe kb videos aayengi sir?

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

    Okay, learning C++ guides me to watching the indian videos without translation)

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

    Done

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

    What's the next topic u will start after number theory??

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

      Graphs.

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

      @@psibarpsi yaa tree and graph is going on.. Hope the next is DP....

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

      @@itz_me_imraan02Yup! I wish the same too.

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

    💛💛

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

    what is your ide?

  • @MohdUmar-db9bm
    @MohdUmar-db9bm 3 роки тому +2

    Bhai please Kisi game ka code bato

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

    ❤️

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

    👍
    Bloopers gaayb 🤔

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

    Are 'long' and 'long long' same?

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

      Well, they kinda are. But according to my understanding, it's better to use long long, because in the case of some compilers, it's size is greater.