Lecture 15: C++ Series End here

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

Комментарии • 357

  • @CoderArmy9
    @CoderArmy9  Год назад +114

    Hello Coder Army, Don't miss out the last question it's really interesting❣

  • @souravsanyal1617
    @souravsanyal1617 Год назад +44

    Good to hear it finally 😂 now our legendary DSA series will begin ❤

  • @arpitraj_05
    @arpitraj_05 4 месяца назад +17

    QUESTION 1: MY APPROACH
    #include
    using namespace std;
    char alpha(char ch)
    {
    ch = ch - 32;
    return ch;
    }
    int main()
    {
    char ch;
    cout > ch;
    cout

    • @tbmsahil8850
      @tbmsahil8850 3 месяца назад +2

      Same I did in first attempt 😊😊

    • @dontreadmybanner2002
      @dontreadmybanner2002 3 месяца назад +1

      Konse year mee ho bro or konsi branch

    • @rajeevbaghel203
      @rajeevbaghel203 3 месяца назад

      Bhai 32 sub kyu kiya

    • @raghunandan4914
      @raghunandan4914 3 месяца назад +1

      @@rajeevbaghel203 see ascii table their small a and big A have difference of 32 in ascii values

    • @Asketic_7
      @Asketic_7 Месяц назад

      same bro

  • @vivek7480
    @vivek7480 Год назад +8

    i was not aware of this series , when i saw ,almost 20 lectured were covered , but i decided to catch the series and i completed 16 lectures in 3 days , thanku bhiaya for such great content 💌💌

  • @narutodihargo
    @narutodihargo Год назад +20

    00:00- Recap previous session, 00:40= Q1) Write a program to Convert 'a' to 'A' === Thinking part, 06:11= Code part, 09:04= Q2) Amstrong Number, 28:45=Q3)Find Trailing Zeros in a Factorial, 28:55= with Logical Approach, 40:07=Solution, 42:03= Q4) Can I form rectangle by given four numbers, 46:30=Q5) Total Moves for Bishop , with Logical Approach , 59:50= Code part, 01:03:44= Q6) Nim game,

    • @Harry-n7e
      @Harry-n7e Год назад +1

      Thanks for timer brother

  • @anadisharma4688
    @anadisharma4688 Год назад +29

    For those whose pow() is not working, include cmath library

    • @lamar...v1981
      @lamar...v1981 9 месяцев назад

      thank you for this

    • @govindraivlogs9938
      @govindraivlogs9938 7 месяцев назад

      thanks man...😊

    • @UE_devlover
      @UE_devlover 6 месяцев назад

      Ok

    • @tbmsahil8850
      @tbmsahil8850 3 месяца назад +4

      #Include kabhi kuch add nhi karna padega thanks me later 😊😊

    • @Parminder_Singh11
      @Parminder_Singh11 2 месяца назад

      @@tbmsahil8850 this is non standard so it may not work with other compiler and it would include lot of unnecessary stuff so it increases compilation time

  • @MohitSingh-lq1ns
    @MohitSingh-lq1ns Год назад +5

    I lost my streak, but now I have completed all the lectures

  • @anadisharma4688
    @anadisharma4688 Год назад +2

    Trailing zeroes done at first attempt...........so happy 😊...... thanks for this concept clarity ❤

  • @NajmGameplay
    @NajmGameplay Год назад +14

    I used to sleep @2am now I sleep 10pm so that I can wake up @5:45 am to consume your videos ❤❤❤

  • @sumitvishwakarma1075
    @sumitvishwakarma1075 Год назад +6

    simple approach for the first problem:
    the difference capital and small alphabet ascii value is 32 so in the function subtract the variable by 32 like below
    char convert(char n)
    {
    n = n-32;
    return n;
    }

    • @Naughty_world6
      @Naughty_world6 9 месяцев назад

      if you wanna more simple use toupper() function

    • @tbmsahil8850
      @tbmsahil8850 3 месяца назад +1

      It easy but not dynamic bro that bhaiya code is dynamic

  • @niru_bhai8415
    @niru_bhai8415 18 дней назад +1

    love u bhaiya from niraj

  • @rohitpawale2151
    @rohitpawale2151 Год назад +4

    Thank you for this Extraordinary Explanation 🙌✨⚡

  • @Sajal_Mallick_vlogs
    @Sajal_Mallick_vlogs 8 месяцев назад

    Day 19 done and dusted....❤ Learn a lot and seems easy.... Thank you bhaiya for awesome explanation....

  • @PranavKamathe
    @PranavKamathe 3 месяца назад +1

    Nice lecture Rohit Bhaiya...!!✨

  • @-BCS-VarshaVaishnav
    @-BCS-VarshaVaishnav Год назад

    19/180 done , thanku so much bhaiya , aap bht acha padhate h

  • @lamar...v1981
    @lamar...v1981 9 месяцев назад +7

    Add #include
    if pow is not working

    • @angadprajapati2854
      @angadprajapati2854 9 месяцев назад

      hme jaise pta hi nhi tha¯\_(ツ)_/¯

    • @ysh___88
      @ysh___88 5 месяцев назад

      thanks buddy

    • @animeshgamer3087
      @animeshgamer3087 2 месяца назад

      Thanks bro

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

    • @animeshgamer3087
      @animeshgamer3087 2 месяца назад

      @@Billy-gd1rm bro again karne ke liye jaise 25/5 =5 hoga
      Fir se 5/5 = 1 hoga
      And = 6

  • @simransahani9199
    @simransahani9199 8 месяцев назад +1

    GREAT Session bhaiya...

  • @beingbillionare2030
    @beingbillionare2030 3 месяца назад

    thankyou bhaiya ethna acha padhaane ke liye

  • @vinaypatil8009
    @vinaypatil8009 Год назад +3

    Pls use different names in variable & in functions. Specially in parameter & arguments because it is easy to understand by different names
    Pls sir everywhere use different names it will help us

  • @rahulsrivastava7765
    @rahulsrivastava7765 7 месяцев назад +1

    Lecture-15 Completed, bhaiya now from next video DSA is going to start and i will give my 100% to complete it and practice it daily.

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

  • @animeshkumarsingh4291
    @animeshkumarsingh4291 Год назад +5

    #180DaysofCode
    Day - 19 Lecture -15
    Successfully Completed ✅✅✅

  • @12krishna_creator
    @12krishna_creator 9 месяцев назад +1

    all dout clear of cpp thank you bhaiya

  • @harshoberoi7874
    @harshoberoi7874 11 месяцев назад +1

    Thanks a lot Rohit Sir for your great efforts

  • @NaysWRLD
    @NaysWRLD Год назад +1

    Bhaiya Aap tagda yogdaan de rahee ho mere jaise beginner level non-it aspirants ke liye.
    Concepts pura root level se clear ho raha hai, placement crack karne ka umeed ho raha hai bhaiya, aise hi saath dete raho🎉🎉🎉❤❤
    Lots of love from WB

  • @varunjain7334
    @varunjain7334 Год назад +1

    Finally completed first milestone 🎉🎉
    Ready to move to the day 20
    So superb and exciting series thanks a lot sir

  • @pushpendrasaini5110
    @pushpendrasaini5110 8 месяцев назад +1

    nice explanation for each and every concept 💚💚💚

  • @ananyieie
    @ananyieie 5 месяцев назад

    bhaiya thankyouu so much, sab kuch achhe se chamak gaya !! basics ek dum clear ho gye and feeling confident now 😄❤

  • @yashubisen7131
    @yashubisen7131 Год назад +4

    What a amazing lecture bhaiya ❤, thanks a lot and now excited to start our Dsa from tomorrow ❤❤❤❤

  • @factydheeraj1277
    @factydheeraj1277 Год назад +10

    It's getting hard now ,
    I am unable to build logic
    #180daysofcode
    But still consistent
    19th day completed

  • @Asketic_7
    @Asketic_7 Месяц назад

    last 2 question was amazing

  • @beastincarnet1106
    @beastincarnet1106 4 месяца назад

    ur dedication.. keep going bhaiya..

  • @nitinthakur9141
    @nitinthakur9141 3 месяца назад

    Chapter 15 completed. Thank you for the lecture sir. #DSA #180daysofcode

  • @notshubhm
    @notshubhm Месяц назад +1

    6:45 another approach :
    char convert (char c) {
    return c - 32;
    }

  • @shovikchakraborty5343
    @shovikchakraborty5343 9 месяцев назад

    Thank you for amazing lecture

  • @a71patiladitya45
    @a71patiladitya45 Год назад +1

    Day 19/180 complete ✅✅✅✅💯💯💯
    Consistency shouldn't break 🔥 🔥 cant wait for upcoming videos bhaiya.....❤ love you bhaiya

  • @arpitraj_05
    @arpitraj_05 4 месяца назад

    in the rectangle problem, we should give one more condition
    if(a==b && a==c && a==d)
    return 1;
    because every square is also a rectangle

    • @manthan.06
      @manthan.06 3 месяца назад

      But we need only rectangle ..........
      but yes u r right 😀

  • @karanrajput9420
    @karanrajput9420 Год назад +1

    Thanx for this amazing lecture.

  • @aayushrajpurohit321
    @aayushrajpurohit321 8 месяцев назад

    #Chamka diye Saare Questions.

  • @sanskargawade7667
    @sanskargawade7667 8 месяцев назад

    Best best content ! Thank You bhaiya ✅

  • @FreeFire-pt6ip
    @FreeFire-pt6ip 9 месяцев назад +1

    Thankyou so much sir 😊

  • @NoorFatima-bs9vp
    @NoorFatima-bs9vp 4 месяца назад

    my logic for que 1
    #include
    using namespace std;
    void swap(char &ch1)
    {h
    char ch2;
    ch2=ch1-32;
    cout

  • @nilkanta1790
    @nilkanta1790 Год назад +1

    Nice lecture, Thank you 🥰🥰🥰

  • @riyazfarash7212
    @riyazfarash7212 Год назад +1

    Bhaiya bohot hi pyaara content hai thank you so much bhaiya

  • @Code..188
    @Code..188 28 дней назад

    Day 15 completed 😊

  • @anuragjaiswal9779
    @anuragjaiswal9779 3 месяца назад

    bhaiya aap bohot badya padate ho 😊😊

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

  • @tanujtanmaypattnaik2897
    @tanujtanmaypattnaik2897 Год назад +1

    Day 19 done #180 days of coding bhaiya Thank you for all your effort

  • @AlkeshDhaka
    @AlkeshDhaka Месяц назад

    Thank you bhaiya maza aa gaya completed at day 7 day 6 par thoda late ho gaya mai sorry for that

  • @khush2926
    @khush2926 3 месяца назад +1

    27july 24 , thank you sir, lecture 15 completed

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

  • @gg-bc6sw
    @gg-bc6sw Год назад +1

    Vaise ek advice Leni thi , mai abhi jee ki tyari kr rahu hu pr coading me kaafi intrest h to Mai sathe Karu ya na Karu confusion h

  • @BlackBeard00001
    @BlackBeard00001 Год назад +1

    Onther day complete 🎉🎉🎉🎉

  • @mamtachauhan1144
    @mamtachauhan1144 Год назад

    Thank you bhaiya ❤️✨

  • @nikhilchhapekar2243
    @nikhilchhapekar2243 Год назад

    Thank you Bhaiya, it's help me lot . Aap bahot ache se smjate ho ❤❤🎉😊

  • @sumitvishwakarma1075
    @sumitvishwakarma1075 Год назад +1

    bhaiya 2 weeks kab khatam hue pata hi nahi chala ab next week se DSA start hoga toh aur maza aayega
    mujhe c++ aati thi aur maine jab classes aur OOPS padha tha tab mujhe jyada samajh nahi aaya tha lekin aap kuch bhi padhate ho voh mujhe turant samajh aajata hai very excited to learn OOPS and DSA from you ❤❤

  • @adityarajsinghrathor
    @adityarajsinghrathor 3 месяца назад +1

    SORRY BHAIYA, I don't comment in every video but aapka bohot bohot DHANYAWAD 🙏🙏🙏🙏🙏

  • @donbhaimotivational
    @donbhaimotivational Год назад

    Thank you bhaiya itana achcha content provide karke ke liye

  • @VishalKumar-iy8zb
    @VishalKumar-iy8zb 2 дня назад

    my compiler has some personal issue with 5 if i am using the pow function and doing the square of 5 then it's showing 24 🙂
    what to do anyone has any idea?

  • @PraptiPramanik-v6j
    @PraptiPramanik-v6j 4 месяца назад

    Day 19/180 completed.😊

  • @Harshal_Nagpure
    @Harshal_Nagpure Год назад +2

    Bhaiya before starting any , DSA course , can tell : How much DSA is required for getting a service based company or Product based company , complet information about all data structures(there advantage , disadvantage, application, also where this ds can be used in product or service based company) plzz !

  • @KhushiKeshari-q5x
    @KhushiKeshari-q5x 3 месяца назад

    Maja aa gaya bhaiya last question interesting tha😂😂😂

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

  • @hanzalamansuni9355
    @hanzalamansuni9355 Год назад

    Pl. Provide slides in which you are explaining logic ...

  • @vikaschaudhary1308
    @vikaschaudhary1308 Год назад +7

    Can we expect to solve atleast 250+ leetcode questions in this entire series??

  • @DIBYENDU_MALLICK
    @DIBYENDU_MALLICK Месяц назад +1

    Complete ✅

  • @joydeep-halder
    @joydeep-halder Год назад +5

    28:10 We can optimize Armstrong number solution by early exiting the loop. 🚀🚀
    while(n)
    {
    rem = n%10;
    n/=10;
    ans = ans + pow(rem,digit);
    if(ans>num) return false;
    }

  • @abhijeet.jain7
    @abhijeet.jain7 Месяц назад

    please anyone tell me the rectangle code solution

  • @mehedihasannnnn
    @mehedihasannnnn Год назад

    Vaiya bohot badiya laga ai nim game wala concept ❤❤❤😅

  • @OmPrakashKewtiya
    @OmPrakashKewtiya 3 месяца назад

    Day 15✅ done

  • @InvincibleDollar
    @InvincibleDollar Год назад +1

    I'm doing coding in java programming for past 2 years , should I switch to c++ or solve same problem in java programming only

  • @I_am_loki_of_asgard988
    @I_am_loki_of_asgard988 4 месяца назад

    1:13:30 bhaiya aab toh hum pro ban gye 😂😂 ab koi nhi h takkar btw ye game mere sir ne ek baar school me krwaya tha mere aur mere dost ke bich me mai galti se jit gya but baad me mai turant pattern dhund liya ki aakhir hota kya h fir mai jiske sath bhi khelta tha sab se jit jata tha😂😂

  • @shubhadipbhowmik
    @shubhadipbhowmik 8 месяцев назад

    Awesome.

  • @bhaveshgomkale
    @bhaveshgomkale 3 месяца назад +1

    Extro Music🔥

  • @LoFiLounge_Tunes
    @LoFiLounge_Tunes 4 месяца назад

    bhaiyyaa mera armstrong wala program 153 ke liye propper work nahi kar rha hai

  • @_hulk748
    @_hulk748 Год назад

    Understood Sir🙏🙇‍♂✨💖

  • @tanishqdixit6313
    @tanishqdixit6313 Год назад

    Day 19/180 completed

  • @shubhamhrichesh657
    @shubhamhrichesh657 9 месяцев назад

    we can also solve trailing zero with this code...In my opinion code is right..but it's giving output 0 after taking input more than 12
    #include
    using namespace std;
    int factorial(int n)
    {
    int product=1;
    for(int i=1; inum;
    int fact= factorial(num);
    cout

    • @A_WAY_TO_BETTER_LIFE
      @A_WAY_TO_BETTER_LIFE 9 месяцев назад +1

      because int can take only 32 bits. so 12! has 32 bits in binary representation but 13! has more than 32 bits in binary representation . So , when we get 0 when we input more than 12!

    • @shubhamhrichesh657
      @shubhamhrichesh657 9 месяцев назад +1

      @@A_WAY_TO_BETTER_LIFE Thank You

  • @harshrajrana7142
    @harshrajrana7142 2 месяца назад

    My approach of armstrong number
    #include
    #include
    using namespace std;
    int main(){
    int n;
    coutn;
    int temp1=n;
    int temp2=n;
    int j=1;
    int count=0;
    while(temp1!=0){
    temp1=temp1/10;
    count++;
    j++;
    }
    int i=1;
    int rem;
    int ans=0;
    while(n!=0){
    rem=n%10;
    n=n/10;
    ans=ans+pow(rem,count);
    i++;
    }
    if(ans==temp2){
    cout

    • @rocketr.4931
      @rocketr.4931 2 месяца назад

      tumne apne code me int j kisliye liya hai uska koi mtlb nahi hai dost .

  • @thinker-o5p
    @thinker-o5p 8 месяцев назад

    Completed day 19

  • @Viivekray
    @Viivekray Год назад

    Day 15 Completed ✅

  • @satyam6943
    @satyam6943 Год назад

    If (ans== num) return 1
    return 0;
    Ye sahi hoga in Armstrong part
    Kyoki ek return value chahiye function ko at last but tum bas if aur else me return kar rahe ho function ke end me return maangta hai. Agar if wala condition true hota hai to program wahi end ho jayega aur last line execute nhi hoga. Warna last line PE Jake return 0 kar dega bina else likhe

  • @Sumit-py8jp
    @Sumit-py8jp 4 месяца назад +2

    Hello bhaiya in code of converting 'a' to 'A'
    // Convert corresponding Capital aplhabet to small and vice versa function
    char convert (char& ch){
    int i =ch;
    if(98

    • @Shauryousee
      @Shauryousee 4 месяца назад

      Yeah yeah correct hai

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      ​@@ShauryouseeBhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

  • @darshanrishabhdz
    @darshanrishabhdz 22 дня назад +1

    sir ak problem aaye h armstrong ka jo code likhe ho ap video 26:29 min me line number 23 pr ans=ans+pow(rem,digit); sir run krne pr _________ armstrong.cpp:21:32: error: 'pow' was not declared in this scope
    ans = ans+pow(rem,digit); ye dikha rha h

  • @vijaybhadadebillionaire8944
    @vijaybhadadebillionaire8944 Год назад

    19 is very interesting lecture

  • @saurabhshukla7769
    @saurabhshukla7769 8 месяцев назад

    Chamak rha hai bhaiya ❤❤

  • @familyverma6173
    @familyverma6173 4 месяца назад

    Thank bro

    • @familyverma6173
      @familyverma6173 4 месяца назад

      Bhaiya aap God gifted ho pahle ku nhi milemujhe😢😢❤❤

  • @vammotv5183
    @vammotv5183 11 месяцев назад +1

    Valid Rectangle code :
    if((A==B && C==D)){
    return 1;
    }
    return 0;

    • @maniishbhandari
      @maniishbhandari 11 месяцев назад

      @vammotv5183 you have not checked for the condition A == C and A == D.

    • @vammotv5183
      @vammotv5183 11 месяцев назад

      @@maniishbhandari But i passed on that website interviewbit

  • @narasinghsj2525
    @narasinghsj2525 Год назад

    sir, aap ek compiler mey screen presentation karke class kijiye

  • @joydeep-halder
    @joydeep-halder Год назад +1

    Solution for set bits. ✅✅
    int count = 0;
    while (N)
    {
    count += (N & 1);
    N >>= 1;
    }

    • @souravsanyal1617
      @souravsanyal1617 Год назад

      Time complexity kya hay iska

    • @SHIVSHANKAR-qv3bg
      @SHIVSHANKAR-qv3bg Год назад

      ​@@souravsanyal1617n

    • @joydeep-halder
      @joydeep-halder Год назад

      @@souravsanyal1617 O(logN) because logN is the number of bits in a number N.
      Lekin 1 aur achha method hai, Kernighan's algorithm. Underlying principle ye hai ki if we do N=N&(N-1) then rightmost set bit of N will become 0, basically in normal word, turning off the rightmost set bit. To right se aise hi turn off karte karte left me age badna hai jab tak N=0 na ho jaye (0 means there is no set bits i.e 1). Isme bhi time complexity O(logN) hi hai. But fark ye hai ki isme har ek bits ko check karne ka zarurat nhi hai.
      int count = 0;
      while(N){
      N &= (N-1);
      count++;
      }

  • @simantosimanto-to2bp
    @simantosimanto-to2bp 2 месяца назад

    Thank you bhai

    • @Billy-gd1rm
      @Billy-gd1rm 2 месяца назад

      Bhai ek doubt trailing zeroes mein sir ne extra N/=5 kyo likha hn 17 line mein please tell?

    • @simantosimanto-to2bp
      @simantosimanto-to2bp Месяц назад

      @@Billy-gd1rm number ko chota karne ke liye

  • @mriduakaxxehacker
    @mriduakaxxehacker Год назад +2

    Thank you brother ❤

  • @ranjanabarnwal1080
    @ranjanabarnwal1080 Год назад

    Sir puzzles video kaha dikehga main dekh nhi paya uss samay main dukan pe kaam kar rha tha

  • @PawaniPukkali
    @PawaniPukkali 7 месяцев назад

    day 20 completed

  • @sanedoings
    @sanedoings Год назад

    0:14 yess bhaiya

  • @mathswithshubham327
    @mathswithshubham327 Год назад

    Bhai stl kab start hogaaq

  • @DarkEntity-o1r
    @DarkEntity-o1r Год назад

    Bhaiya pow function kum nahi kar rha hain , power ka code kayse likhte hain?

  • @joydeep-halder
    @joydeep-halder Год назад

    Solution for distribute in Circle
    int ans = (A+C-1)%B;
    return ans==0 ? B : ans;

  • @onlystudytrichycoding6982
    @onlystudytrichycoding6982 Год назад

    bhiya factorial wala to rem nikal if( rem==0 { cout++ ; } bhi kr skte hai mera sahi ans aara hai

  • @DeveloperArvind
    @DeveloperArvind Год назад

    Good morning Bhaiya 🙏

  • @HimanshuGupta-jj8kn
    @HimanshuGupta-jj8kn Год назад

    sir can you explain again the problem, bishop and zero in factorial. ye wali problem chamki nhi h sir chamka digie 🫡

  • @naitikkumar2163
    @naitikkumar2163 Год назад +1

    Hellow bhaiya actually I have taken your course but right now there is no any mentor i found which we are getting problem to start which session I should start the coding I am so confused please try to provide mentor as soon as possible bhaiya please as soon as I try to start but I become confused

  • @Pankaj82
    @Pankaj82 Год назад

    Bhaiya leetcode pe question karvao na please

  • @rahulkumar.2156
    @rahulkumar.2156 9 месяцев назад

    sir i have a one doubt they show "min" is undecleared