C++ Strings, Getline and Big Numbers for Competitive Programming | C++ Basics 4 | CP Course | EP 5

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น •

  • @jashanbansal2613
    @jashanbansal2613 4 ปีที่แล้ว +135

    At 13:00
    "Pehla getline jo input hai usne 3 ke Baad wala
    input le Liya hai"
    Usne woh
    input nahi Liya hai, usme empty string input hogi sirf and Baad mein wo empty string output ho Rahi hai and endl ki wajah se next line pe chla gya cursor. I think this is correct, isn't it?
    Great video. Keep it up 👏👏

    • @iamluv
      @iamluv  4 ปีที่แล้ว +48

      Yes this is correct. Thanks for pointing out the mistake. I somehow missed this while making video.

    • @jashanbansal2613
      @jashanbansal2613 3 ปีที่แล้ว +8

      @Chandler Richard @Laure innocenti
      You guys have girlfriend :/

    • @hhh48222
      @hhh48222 3 ปีที่แล้ว

      @@jashanbansal2613 😂😂😂😂

    • @nikhilflautist
      @nikhilflautist 3 ปีที่แล้ว +2

      @@jashanbansal2613 bhai but getline ne empty string kahan se le li??. 3 ke baad toh
      hai.

    • @manojgollapelli8360
      @manojgollapelli8360 3 ปีที่แล้ว

      @@nikhilflautist i was thinking the same

  • @madhavanand756
    @madhavanand756 4 ปีที่แล้ว +8

    Maa kasam course nahi tabahi hai yeh.
    Bhai puri jimmay vari sey home-work question bhi dalta hai, video tou hai hi killer.
    Salute you brother.

  • @aviralsrivastava3409
    @aviralsrivastava3409 4 ปีที่แล้ว +25

    Your name is perfect! You 'Luv' programming, and teaching... and we all 'Luv' you!!! Thank you so much!

  • @himanshugarg08
    @himanshugarg08 4 ปีที่แล้ว +167

    This is GOD Level video series..We will not be able to acquire that much small small points after doing it on our own too. It is also not available anywhere together..and then too in video form is crazy. If you are watching it by skipping certain parts, please don't skip. Every second of watching is worth. So concise. Thankyou so much for everything.

    • @iamluv
      @iamluv  4 ปีที่แล้ว +69

      Thank you, i know people should not skip, because there so many small points which are not easily available in books or somewhere else as they are learnt from experience and I am just sharing my experience here.

    • @varisrana2805
      @varisrana2805 4 ปีที่แล้ว +4

      Superb sir

    • @jaydeep-p
      @jaydeep-p 4 ปีที่แล้ว

      @@iamluv bro next wala kab daloge?

    • @yutaitadori7318
      @yutaitadori7318 3 ปีที่แล้ว

      @@iamluv 🔥thanks

    • @vinaypratap620
      @vinaypratap620 3 ปีที่แล้ว

      100% agree

  • @suryaganeshpindiprolu472
    @suryaganeshpindiprolu472 2 ปีที่แล้ว +3

    Here is a teacher who is explaining everything in detai. This world needs you.

  • @aashishkumarsingh3685
    @aashishkumarsingh3685 4 ปีที่แล้ว +5

    1.To the point explanation of necessary concepts
    2.Covering all these things in a single video instead of making tons of videos
    3.Questions links for practice
    This approach you are following is very impactful,great job bro!

  • @mrankushtechnical
    @mrankushtechnical 3 ปีที่แล้ว +12

    Bhai Dil jeet liya...❤️

  • @Vishaaaaaaaaaal
    @Vishaaaaaaaaaal 2 ปีที่แล้ว +2

    Palindrome:
    #include
    using namespace std;
    int main(){
    string s, srev;
    int counter=0;
    getline(cin,s);
    for(int i=0; i

  • @omkargunjal1611
    @omkargunjal1611 4 ปีที่แล้ว +3

    Ye pehla banda dekha he mene jisne actual reason samjhaya he 12:48 pe getline vese kyo kam nhi krti, thanks bro mujhe samajhta tha ye, ab samajh gya😃

  • @ProgrammingWithRabbani
    @ProgrammingWithRabbani ปีที่แล้ว

    awesome he year, 1 movie 10 times dekhne se eh playlist 1 time dekh bohut accha hone wala he life me

  • @mdnazirhusain1721
    @mdnazirhusain1721 4 ปีที่แล้ว +2

    No lecture on string in youtube of this level. I find most helpful thanking you soooo much🙏🙏🙏🙏❤️

  • @rohitchilhorkar8114
    @rohitchilhorkar8114 3 ปีที่แล้ว +6

    You are a genius. There are very few tutor on yt having such deep knowledge and who explains logic behind such functions. Keep it Up!
    Thank you for taking efforts to help us:)

  • @bristiroy8504
    @bristiroy8504 4 ปีที่แล้ว +70

    sir please dont stop making this course in middleway just for sake of profits and few pennies . There are poor students like us who completely depend on this couse and your promises . Lots of love and admiration for you sir ......you are GOD to us.
    In future when i will become a good programmer I will definitely do social work like you ..You are bringing in a revolution in access to programming education ......PLEASE PLEASE CONTINUE .

    • @iamluv
      @iamluv  4 ปีที่แล้ว +65

      unless any unforeseen circumstances come, i will guarantee that this course WILL NEVER STOP. DON'T WORRY. My only aim with this course is to help you all. I feel very happy reading all the good things you comment, I used to teach in my college, i loved that, I am teaching now as well. And i love it as well.
      Just keep supporting. ❤️❤️

    • @bristiroy8504
      @bristiroy8504 4 ปีที่แล้ว +4

      @@iamluv I will definitely share among my friends

    • @yashsahay1096
      @yashsahay1096 4 ปีที่แล้ว +5

      @@iamluv I also wanted to say the same thing. Please don't stop....There is no doubt that you are getting less views than that you deserve but believe me it's gonna increase rigorously...Really appreciate you bhai for what you are doing.

  • @utpalanand7507
    @utpalanand7507 3 ปีที่แล้ว +1

    One of the finest teacher for programming on TH-cam

  • @nandiprachi
    @nandiprachi 3 ปีที่แล้ว +1

    The Best tutor. I would recommend every student to refer to these videos if they want their cp to be strong. Thanks bhaiya

  • @nayeemislam8118
    @nayeemislam8118 3 ปีที่แล้ว +4

    Best CP series I have ever seen. Carry on this great approach!

  • @GauravSingh-wv5id
    @GauravSingh-wv5id ปีที่แล้ว +1

    This playlist is very useful for college students like me so I would like to thank you for your hardwork and also for providing this quality content free🙂.

  • @nayidishaye5614
    @nayidishaye5614 3 ปีที่แล้ว

    First of all, Thanks a million. I would like to say one thing, the first time I found that genuine channel on youtube. Your teaching style is very well. Anyone can understand programming language easily.

  • @subhashgupta7783
    @subhashgupta7783 4 ปีที่แล้ว

    Bhai mujhe ye concept bhot late pata chali thi ,, first years wale kaafi blessed hai ,, unko itna acha exposure mill rha hai aap jaiso se ... Bhai Good work Keep it up brother "" ... 🙏🙏🙏🙏

  • @priyak_2003
    @priyak_2003 4 ปีที่แล้ว +6

    i am following you since first video of this playlist.I have shared your playlist with my friends.Content matters man!!

    • @iamluv
      @iamluv  4 ปีที่แล้ว +4

      thank you for your support

  • @saurabhmahra4084
    @saurabhmahra4084 3 ปีที่แล้ว +2

    Worth watching every second, hands down the best tutorial on c++ (though not intended :)).

  • @Ronidev89
    @Ronidev89 9 หลายเดือนก่อน

    This is the best c++ course in TH-cam

  • @devilgaming6182
    @devilgaming6182 17 วันที่ผ่านมา

    Practice Question 7:
    int t;
    cin >> t;
    while(t--){
    int count = 0;
    string r_Jewel, Stone;
    cin >> r_Jewel >> Stone;
    set Jewel;
    for(int i = 0;i < r_Jewel.size();i++){
    Jewel.insert(r_Jewel[i]);
    }
    for(auto itr = Jewel.begin();itr != Jewel.end();itr++)
    for(int i =0;i < Stone.size();i++)
    if(*itr == Stone[i]) count++;
    return count;
    }

  • @praneethbhargav8356
    @praneethbhargav8356 3 ปีที่แล้ว

    I was in a confusion of buying a paid course but thank god I found this series. Thanks a lot bhai.

  • @pruthvirajjadhav8124
    @pruthvirajjadhav8124 4 ปีที่แล้ว +4

    Bhaiya really appreciate ur initiative cause there are many courses on TH-cam but ur compitative coding couse is awesome and easy to understand ❤️

  • @AminKhan-wo4ec
    @AminKhan-wo4ec 3 ปีที่แล้ว +3

    I started this course from 2-3days and I want to say that from here to upcoming 4 months I will get placed in anyone of the FAANG so keep doing this good work :)

    • @priyadarshiroy9584
      @priyadarshiroy9584 ปีที่แล้ว

      Hi what is the prerequisite to watch this course?

  • @manikantasai6118
    @manikantasai6118 3 ปีที่แล้ว +1

    Luv bro... I fell in luv with your lectures on competitive programming.

  • @Fachhelog
    @Fachhelog 29 วันที่ผ่านมา

    this is the most famous playlist for cp/dsa in my whole college🙂🙂

  • @AnandKumar-og8bu
    @AnandKumar-og8bu ปีที่แล้ว +1

    In the video from 12:30 to 12:36, you said that the getline will put
    into the variable 's' but this is not the actual thing. What it does is it will extract the delimiter (i.e.
    in this case) but not store it. Instead it will discard the delimiter. Consequently, there is nothing stored in 's' during the 1st iteration of the loop. And due to endl it is showing change in line.

  • @fairlyfire
    @fairlyfire 4 ปีที่แล้ว +1

    Itne acche se strings ka concept kissene nahi cover kiya hai
    tysm bhai!!!

  • @aryanverma6921
    @aryanverma6921 4 ปีที่แล้ว +2

    Man you are awesome....
    This channel has some really good potential!

  • @shivanshm1
    @shivanshm1 4 ปีที่แล้ว

    bhai never found a video jo is level ki knowledge de....glad to have u............

  • @burning9708
    @burning9708 2 ปีที่แล้ว

    Honestly speaking, those are one of the best tutorial series I have ever seen. Carry on your work.
    ~take love from Bangladesh

  • @imran4935
    @imran4935 9 หลายเดือนก่อน

    Bro Thank you so much for these videos. You are simply amazing. You explain each topic so easily and clearly. I hope to finish all of your videos soon.

  • @nerd.coder_Abir
    @nerd.coder_Abir 9 หลายเดือนก่อน

    this playlist is just awesome ; I am learning new things everyday;

  • @devilgaming6182
    @devilgaming6182 17 วันที่ผ่านมา

    Practice Question 8:
    bool checkRecord(string s){
    int absent = 0, late = 0;
    for(int i = 0;i < s.size();i++){
    if(s[i] == 'A') absent++;
    if(s[i] == 'L') late++;
    else late = 0;
    if(absent == 2||late == 3) return false;
    }
    return true;
    }

  • @anandnagar557
    @anandnagar557 3 ปีที่แล้ว

    One of my friend from your college suggested me this playlist. And after watching your some videos i have become your fan. Actually no other you tube channel gives this much deep knowledge. And your way of speaking is too awesome, it feels like our older brother is teaching us. Thanks a lot❤️

  • @spyder439
    @spyder439 2 ปีที่แล้ว

    I am going to like every single video of this series!

  • @code4compile342
    @code4compile342 3 ปีที่แล้ว +1

    Wow.....! I found an incredible teacher.

  • @indrajeetsinghbijnori916
    @indrajeetsinghbijnori916 3 ปีที่แล้ว +2

    Your videos are very helpful for me.
    Now I can solve competitive programming questions without seeing any solution.

  • @ritikgupta1133
    @ritikgupta1133 2 ปีที่แล้ว +1

    Bhai your playlist is god level you share very key points throughout the video thanks for the playlist

  • @adarshsharadpandey6723
    @adarshsharadpandey6723 2 ปีที่แล้ว

    You are angel Luv bhaiya 🤗🤗🤗🤗🤗 Aisa course matlb kai paid courses se b bhut axe quality ka hai

  • @amritanarang7305
    @amritanarang7305 3 ปีที่แล้ว +2

    even if i made my own notes, i could never make such short and informative ones like your videos,i mean no time wastage at all
    ps:loved the music in beginning and ending

  • @cjcj8734
    @cjcj8734 ปีที่แล้ว

    easily grabbed this topic , teaching skills are
    great

  • @abhishekgupta9135
    @abhishekgupta9135 3 ปีที่แล้ว

    Bhai sahab ek alag hii level par❤️❤️

  • @adarshsk099
    @adarshsk099 ปีที่แล้ว

    Super non boring crisp series.. Please include class.. Inheritance concepts too

  • @harshitagoel
    @harshitagoel 3 ปีที่แล้ว

    I don't really comment on videos but this series is genuinely helpful. The concepts are taught from basics, there are plenty of questions, and they are from all the major coding websites. Thank you sir.

  • @ArjunSingh-xz3jg
    @ArjunSingh-xz3jg 3 ปีที่แล้ว +1

    Best cp tutor. Respect!👏👏👏

  • @neerajmahapatra5239
    @neerajmahapatra5239 3 ปีที่แล้ว

    Learning so many new things from you like to store very large values in the form of string. Luv u Luv Bhaiya

  • @Gamferno
    @Gamferno ปีที่แล้ว

    i dont know if you're stil reading comments on this course (since its uploaded 2yrs ago), but i actually did a similiar beginner course on c++ from bro code and was so confused since a lot of things were just told, but you precisely mention each and everywhere, about how and where this will be useful, also you are mentioning the questions and their solutions along the way which eases the anxiety i often get when i do the courses but never know why i did or how will i do this problems, i am going to continue this till the end!

    • @iamluv
      @iamluv  ปีที่แล้ว

      i am reading :)

  • @subhamengine1143
    @subhamengine1143 3 ปีที่แล้ว

    solved the problems except the question series in the last link!!
    thanks for making me feel confident towards strings
    best wishes...

  • @piyushjaiswal6238
    @piyushjaiswal6238 4 ปีที่แล้ว +1

    This course is very useful and i am learning new thing in each episode. Even though I have completed ds algo 4months earlier .

  • @mohitahlawat4944
    @mohitahlawat4944 4 ปีที่แล้ว +1

    This is the most basic problem.that i recently faced and i do the same increment trick but don't know the inner implementation, but now its kind of satisfying ^_^

  • @saraswatirathore3933
    @saraswatirathore3933 2 ปีที่แล้ว

    I am really grateful to you efforts.No one give us depth knowledge. Thank you so much

  • @anuj8855
    @anuj8855 ปีที่แล้ว

    Although I know c++ but i learnt a lot of things here. Thank you 😊 keep it up

  • @yashtiwari828
    @yashtiwari828 3 ปีที่แล้ว

    Finally I got best content on youtube

  • @vasubansal2154
    @vasubansal2154 4 ปีที่แล้ว +16

    Just saw your playlist today while searching for solving my doubt of getline function and all my doubts are clear.
    Very very nice explaination.APPRECIATED;
    thnx luv bhaiya..Plz make such videos more

    • @iamluv
      @iamluv  4 ปีที่แล้ว +9

      Pura a-z course ayega.. don't worry.

  • @AbhishekSingh-dt6br
    @AbhishekSingh-dt6br 3 ปีที่แล้ว

    21:35 thankyou so much for this. I wanted to know this thing for a question

  • @amanrubey
    @amanrubey 4 ปีที่แล้ว +2

    this series is PRICELESS ♥

  • @DPCODE72
    @DPCODE72 3 ปีที่แล้ว

    Excatly, after one year, I've been watching ur videos!!

  • @agentsmith_
    @agentsmith_ 2 ปีที่แล้ว +5

    18:54 My solution for checking palindrome (which you told us to write on our own)
    #include
    using namespace std;
    int main(){
    string str;
    cin>>str;

    for(int i=str.size()/2;i>=0;--i){
    if(str[i]!=str[str.size()-1-i]){
    cout

    • @HaveFun-f4v
      @HaveFun-f4v 2 ปีที่แล้ว

      #include
      using namespace std;
      int main(){
      string str;
      cin>>str;
      for(int i=0; i

    • @LALANKumar-en5rv
      @LALANKumar-en5rv ปีที่แล้ว +1

      @@HaveFun-f4v both of code are wrong

  • @satyamrajput825
    @satyamrajput825 2 ปีที่แล้ว

    Owsome video bro the content of your video is totally different from other youtuber

  • @avastino
    @avastino 3 ปีที่แล้ว +1

    Kya smjhaya hai bhaiya 🔥🔥

  • @shakshi9108
    @shakshi9108 3 ปีที่แล้ว

    the cin.ignore() is very useful ,i was stuck in a question just because of this thankyou bhaiya

  • @priyak_2003
    @priyak_2003 4 ปีที่แล้ว +1

    sahi boss👍🏻👍🏻🔥.Really appreciate your hardwork man!! thanks

  • @shivamrathour5075
    @shivamrathour5075 4 ปีที่แล้ว +1

    Continue karo bhai channel bahut bada hone wala hai in future

  • @joeljacob4685
    @joeljacob4685 4 ปีที่แล้ว +3

    really awesome content bro!! Really I learned a lot from this video. KEEP GOING !!

  • @devilgaming6182
    @devilgaming6182 16 วันที่ผ่านมา

    Practice Problem 3:
    string s;
    cin >> s;
    string answer;
    for(int i = s.size() - 1;i >= 0;i--){
    answer.push_back(s[i]);
    }
    if(answer == s) cout

  • @Kayo1Music
    @Kayo1Music 3 ปีที่แล้ว

    Every second of this video proves useful to me even though I am not new to c++. Thanks for making such awesome content for free!!
    You deserve to grow more and more in the near future!!

  • @roshanmhatre8810
    @roshanmhatre8810 4 ปีที่แล้ว +1

    Both achha Content tha is video ka, kaafi kuch naya sikhne mila❤️
    Please keep this short short things in each video so we don't miss anything

    • @iamluv
      @iamluv  4 ปีที่แล้ว +2

      for sure

  • @jubaercse7984
    @jubaercse7984 4 ปีที่แล้ว

    This is one of the best CP learning approaches that I have never shown before it is really helpful .... Thank you Luv sir

  • @anugrahchaturvedi6764
    @anugrahchaturvedi6764 4 ปีที่แล้ว +1

    that getline concept was totally awsm

  • @rimolchakma1111
    @rimolchakma1111 3 ปีที่แล้ว

    Best video for competitive programmers ❤️❤️

  • @MukeshSaini-vo1bq
    @MukeshSaini-vo1bq 2 ปีที่แล้ว

    The backgroud music at the end is so satisfying

  • @Kanekikenn999
    @Kanekikenn999 3 ปีที่แล้ว

    Seriously man...this is a quality content😢thank you so muchhh

  • @NishaKumari-fy9sv
    @NishaKumari-fy9sv ปีที่แล้ว

    Your way of explaining is ossom keep it up

  • @kami_OwO
    @kami_OwO 3 ปีที่แล้ว +1

    #include
    using namespace std;
    int main(){
    string s;
    cin >> s;
    for(int i = 0, j=0;i

  • @kevinmitnick1301
    @kevinmitnick1301 3 ปีที่แล้ว +1

    Thanks Luv for this God Level Content !!

  • @vaishaliajmera2197
    @vaishaliajmera2197 3 ปีที่แล้ว

    Now I understand getline function. Keep it up sir!!

  • @hritwijkamble9988
    @hritwijkamble9988 ปีที่แล้ว +1

    If getline func used instead of cin, still gives sky values. 22:05 . Why?

  • @varisrana2805
    @varisrana2805 4 ปีที่แล้ว +1

    God level explanation😍😍😍

  • @arkahhhzzrisingto1071
    @arkahhhzzrisingto1071 2 ปีที่แล้ว

    Bhai excellent course 🔥🔥🔥🔥🔥🌱⭐⭐🚀⭐🌱🌱

  • @antor.morsalin
    @antor.morsalin 2 ปีที่แล้ว

    glad we are getting all of these for free

  • @_AdityaKumar-fz4cu
    @_AdityaKumar-fz4cu 3 ปีที่แล้ว

    Keep growing @Luv bro.. wishing you a great success from the bottom of my heart ❤️

  • @sarikahmed5083
    @sarikahmed5083 4 ปีที่แล้ว +1

    No words just 🙏🙏🙏

  • @ayanavadas6154
    @ayanavadas6154 3 ปีที่แล้ว

    Very helpful resource to learn Competitive Programming.

  • @a2_63_vimalmishra9
    @a2_63_vimalmishra9 3 ปีที่แล้ว

    Bhaiya ji mzaaa aa jata h apki videos me😁😁

  • @anmolj
    @anmolj 4 ปีที่แล้ว

    Hi, watched your service based to product based company video just now, it was really helpful ,wanted to thank you for making the video!

  • @CNILOYBARUA
    @CNILOYBARUA 2 ปีที่แล้ว

    Love from Bangladesh bro, 🇧🇩🇧🇩🇧🇩🇧🇩🇧🇩🇧🇩Thanks for your amazing video

  • @apurbakumarmajumder9478
    @apurbakumarmajumder9478 3 ปีที่แล้ว

    Very nice video.
    This is a great initiative and I joined your discord server too. Just a nice space.
    Thanks LUV

  • @002ashishkumar5
    @002ashishkumar5 3 ปีที่แล้ว +1

    Thank you soo much bro, This playlist is soo special

  • @subhasispanda4960
    @subhasispanda4960 3 ปีที่แล้ว

    On the way to complete this playlist...This is completely awesome content. Thank you ❤ brother.

  • @kaibalyapujhari3409
    @kaibalyapujhari3409 2 ปีที่แล้ว

    The Gladiator ❤️ concept.

  • @hrithwik99
    @hrithwik99 3 ปีที่แล้ว

    youre a lifesaver bro, thanks from kerala

  • @prithvipratap4688
    @prithvipratap4688 3 ปีที่แล้ว

    Amazing content and the way present it is more Amazing..thanks ..this video helps me a lot

  • @ScienceSeekho
    @ScienceSeekho 3 ปีที่แล้ว

    Thankyou bro. Good content for free is not easy to give and get!!!! Hope your dreams come true

  • @RahulRaj-yi5xm
    @RahulRaj-yi5xm 3 ปีที่แล้ว +1

    Thank you so much Sir, the effort u have put in to make a nice content for all of us.😊🙌

  • @unityleveldesign4878
    @unityleveldesign4878 3 ปีที่แล้ว

    Bahut accha kam kar rahe ho luv bhai.

  • @ShubhamMishra-mz4zw
    @ShubhamMishra-mz4zw 2 ปีที่แล้ว

    Thank you for this video... great explanation

  • @starlearnerspro955
    @starlearnerspro955 3 ปีที่แล้ว

    I would simy say you are the best