Find Second Largest Element in Array | Remove duplicates from Sorted Array | Arrays Intro Video

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • Notes/C++/Java/Python codes in Step 3.1 of bit.ly/tufA2ZYt
    Largest Element: takeuforward.org/data-structu...
    Second Largest: takeuforward.org/data-structu...
    Check if Sorted: takeuforward.org/data-structu...
    Remove Duplicates: takeuforward.org/data-structu...
    Practice Link:
    Largest Element: bit.ly/3CuLIR3
    Second Largest: bit.ly/3GJie4l
    Check if Sorted: bit.ly/3XsgYIH
    Remove duplicates: bit.ly/3if2k8G
    Full Course: bit.ly/tufA2ZYt
    You can follow me across social media, all my handles are below:
    Linkedin/Instagram/Telegram: linktr.ee/takeUforward
    0:00 Introduction of Course
    0:54 Basics of array
    6:33 Introduction of Brute, Better and Optimal Approaches
    8:50 Largest element in an array
    11:39 Pseudo code
    12:44 Code-compiler
    13:30 Second Largest element in an array
    23:48 coding implementation
    28:42 Check if the array is sorted
    30:00 Pseudo code
    30:49 Code-compiler
    31:26 Remove duplicates in place from Sorted array
    40:40 Pseudo code
    42:12 Code-compiler

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

  • @takeUforward
    @takeUforward  Год назад +225

    Let's march ahead, and create an unmatchable DSA course! ❤
    Use the problem links in description.

    • @ParasSharma-mf8or
      @ParasSharma-mf8or Год назад +1

      I will add it, don't worry

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

      Hey striver,
      Just a small request, If is it possible then try to paste your video Clip in Right hand side in the lectures, as previous lectures.
      Because it's a habit of long time to see the solution or explains in left hand side.
      Just a silly request... 😂

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

      456 a to z start kar diye h 😊

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

      HAVE UNDERSTOOD_COMPLETELY

    • @039puneethbatchu2
      @039puneethbatchu2 Год назад +1

      Hello sir, You're so much passionate about teaching. Each and every word of your video goes into my mind . Thank you sir.

  • @bhaiookabhai
    @bhaiookabhai 6 месяцев назад +110

    started today and completed the first video very well explained! thankyou so much!
    will continue the streak and will update below every video after successfully watching it!
    edit: whenever someone likes this comment i get reminded!

    • @sriemandi3978
      @sriemandi3978 5 месяцев назад +1

      bro where are you ?

    • @pratikdongre4376
      @pratikdongre4376 2 месяца назад +5

      bhag gya kya padhai kr

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

      @bhaiookabhai kaaha tak pahuncahe dsa , mae aj start kar raha hun

    • @showdownx8276
      @showdownx8276 День назад

      Arre bhai update to do .... gand faat gaya ki placement ho gaya ?

  • @mindpower185
    @mindpower185 Год назад +48

    GOAT respect ++ because no one can explain the TC & SC for begineers in whole youtube i saw all videos. but no one can expalin like you

  • @yhbarve
    @yhbarve Год назад +130

    The 2-pointer method is so efficient compared to brute force...and it's so short as well...loved it! Understood

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

      can you tell me in code to find slarge why we write elseif block

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

      @@CodewithKing360 public static int largest(int num[]) {
      int max = 0;
      for (int i = 0; i < num.length; i++) {
      if (num[i] >= max) {
      max = num[i];
      }
      }
      return max;
      }

  • @mahmoodakhtar-df1ze
    @mahmoodakhtar-df1ze 4 месяца назад +10

    I was wondering how my friends were studying so well, then I found out they were all studying from here, man.♥
    You have the best way of explaining things!
    You start everything from scratch and then build it up so well. ♥

  • @abhijeetmishra3804
    @abhijeetmishra3804 Год назад +9

    The video was awesome and so were you with your method of teaching. Hoping that it goes ahead in same way. Thank you, keep growing and keep posting.

  • @chintamanipala
    @chintamanipala 10 месяцев назад +10

    I loved your teaching style as well as how we can build our logic from a brute force approch to optimal approch ❤❤❤

  • @jaykaantshikre751
    @jaykaantshikre751 11 месяцев назад +8

    Understood , Never thought easy problems could be solved with such optimal solutions.

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

    Thank you for this fantastic and well-structured course Striver. I just started into the world of problem-solving and found it very difficult to follow along on tutorials. But after I started watching your videos my mind began to think of an approach before looking for solutions. Though I still find it challenging to write all the code by myself, I am happy that I have started making progress on the problem-solving part. Things are making sense and I am able to come up with different scenarios before actually solving the problem.

    • @user-db3xz3oz6s
      @user-db3xz3oz6s 10 месяцев назад +1

      bro i am starting dsa. how is strivers for that? also apne kitna kaar liya hai

    • @user-zf9fd4ww1h
      @user-zf9fd4ww1h 7 месяцев назад

      @@user-db3xz3oz6s striver is amazing, just that you have to practice a lot of questions. just watching striver videos alone will help a little, main thing is rigorous practice.

  • @shubhrajit2117
    @shubhrajit2117 7 месяцев назад +12

    At 34:28 the set can be made simply as
    set st(arr, arr + n);

  • @Manishgupta200
    @Manishgupta200 Год назад +15

    Superb Striver. The Removed duplicates was much thinkable but solved finally. Thankyou for such an amazin tutorial

  • @parthkandwal8343
    @parthkandwal8343 Год назад +17

    You are doing an amazing job Sir by providing such brilliant content. Thank you very much Sir.

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

    It has been fantastic! Even as a beginner, I'm able to understand complex problems thanks to your clear explanations. Thank you for making such high-quality content!

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

    Just completed. It was amazing, the way you explain, hats off to you
    Thank you.

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

    this course your explanation is just wow ; I am regretting that this piece of gold Ive found a bit late

  • @AbhishekSingh-mh2fg
    @AbhishekSingh-mh2fg 11 месяцев назад +5

    Watching this video after solving these problems. For the Remove duplicates, i did it like if array[i] < array[i++] if yes then increase the count.
    I really like the way you explain.

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

    Understood! Super fantastic explanation as always, thank you very much!!

  • @VishnuKumar-vi8hh
    @VishnuKumar-vi8hh Год назад +10

    It was great learning Thanks❤ Bhaiya
    I have now more interested in coding after seeing your playlist , always feels motivated.

  • @Dev2.0
    @Dev2.0 Год назад +93

    Completed DP series... That's pure Gold..
    Now watching this series to revise concepts....
    Striver Bhaiya You are my inspiration 🥺🥺

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

      Is that Dp series helpful to clear google dsa rounds??

    • @saswatrath4646
      @saswatrath4646 4 месяца назад +2

      yes, super helpful uske sath agar love babbar and interviewbit ka addditional questions laga dega to interview bhi clear ho jayega @@AppaniMadhavi

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

      Tq for giving clarity@@saswatrath4646

    • @aditiapar9355
      @aditiapar9355 16 дней назад

      @@saswatrath4646 bs dp mei ya har topic mei in dono k additional question lgao?

  • @user-bj9qx9yf1o
    @user-bj9qx9yf1o 9 месяцев назад +3

    Great explanation, no rocket science and maths, Thank you for such great content.

  • @AmartyaPardeshi
    @AmartyaPardeshi 11 месяцев назад +5

    Great efforts, thanks for this precious course!

  • @rnjnmhta.catomato
    @rnjnmhta.catomato 10 месяцев назад

    your explanation feels like pure science! beautiful man

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

    I'm enjoying now to do DSA !!!
    Thanks Striver, thanks a lot.

  • @thor1626
    @thor1626 Год назад +11

    Thanks for the amazing explanantion, i was stuck on the duplicates question, but you made it very easy, thanks. keep going.
    //(11/7/23 || 4:38 am)

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

    Understood...🔥🚀🔥 || Loving it so far. Thanks for amazing content.

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

    Thank you striver for the amazing explanation 😊

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

    bhaiya you are just awesome! you are an insipiration for the whole student community! big shoutout yo you! continue like tha ,you make many student future bright

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

    understood, and the idea of not making very long videos is superb. Long videos are scary.
    thanx for ur efforts

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

    Thank you striver for putting so much effort into making these videos.
    Thank you again :)

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

    Such a big thing to share your knowledge in this free platform while there r lots of paid platforms... Thanks a lot
    Understood bruh

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

    Helpful in getting back on track
    after a long Break

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

    Thankyou for giving this well structured course.

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

    this is the first time i'm studying from this channel and you're the best. I'm literally enjoying solving questions today, thankyou so much for this❤

  • @Josuke217
    @Josuke217 19 дней назад +18

    Started this playlist: 13/7/2024

  • @Swati-uy6wg
    @Swati-uy6wg 11 месяцев назад

    This course helped me a lot. Thankyou bhaiya!

  • @MaheshKumar-jc8sp
    @MaheshKumar-jc8sp 3 дня назад

    Excellent Mento till date, great conceptual briefing.

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

    Thank you for this video, I understood whole concept which was discussed in this video.

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

    My damm god, how on earth anyone can teach so brilliantly. Sir u are such a gem.. 💎💎💎💎

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

    Sir you're a Legend and I have a new interest in Coding after watching your videos and practicing constantly. Thank You ❤

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

    Understood! Thanks a lot striver for this amazing content. Love from Kolkata

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

    mind blowing explaination man . thank you for this content makes more and more

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

    waited since afternoon for this... now starting

  • @alikhanmehboob610
    @alikhanmehboob610 12 дней назад

    Thanks for the amazing explanation. You earned yourself a subscriber!

  • @MaheshKumar-jc8sp
    @MaheshKumar-jc8sp 3 дня назад

    Excellent Mentor till date, great conceptual briefing. Also great tips on preparation as well, Thank you, for this help the underpriviliged like me enormously. If you dont want to spend a lot and still want to Up-skill your career this is the Channel you must refer to.

  • @PrithaMajumder
    @PrithaMajumder 2 месяца назад +1

    Raj, Thanks a lot for This Amazing Video about C++ Arrays
    Video - 1 Completed ✅

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

    great! understood very well

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

    I am on the who found this channel very late but der aaye durust aaye.These topics are crystal clear in my mind after watching this video
    Thanks for your effort

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

    you are doing a great job striver.

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

    bhaiyya aapse hi sikha he sab kuch, thankyou again raj bhaiyya

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

    Understood! your explanation was excellent ❤

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

    hey man I really really respect you as a person.

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

    Awesome lecture bhaiya❤

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

    This consistency is what I'm expecting bhaiya

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

    Amazing explanation !

  • @ShubhamKumar-km8pm
    @ShubhamKumar-km8pm Год назад

    Awesome explanation striver🔥

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

    Mindblowing video on arrays in c++ ;
    thanks striver bhaiya for providing all these awesome materials at free of cost ;
    😇

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

    Best course for dsa 🔥🔥

  • @DeepaPatel-bq8fm
    @DeepaPatel-bq8fm 3 месяца назад

    You are so good in simplifying things

  • @Prasadk2003
    @Prasadk2003 11 дней назад

    Today I began the journey of solving problems of DSA , Thank you striver for this great series

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

    Understood everything, Thanks a lot

  • @Deepak-hv8uh
    @Deepak-hv8uh 6 месяцев назад +2

    bhai ne kya gajab samjhaya hai, maza aa gaya

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

    very great explaination, understood sir!

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

    wonderful explanation understood!!

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

    Thank you for such a wonderful content

  • @AniketKumar-hf2bo
    @AniketKumar-hf2bo 6 месяцев назад

    understood everything ,thank you for this amazing video

  • @VishalGupta-vn8ey
    @VishalGupta-vn8ey Год назад

    Understood clearly bhaiya !!

  • @aayushsingh5614
    @aayushsingh5614 6 месяцев назад +1

    This guy will make every BUSINESS TEACHER'S business down for sure.....

  • @newtechhacaks
    @newtechhacaks 10 месяцев назад

    Thankyou for your efforts and knowledge for us 😊

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

    Bhaiya your approach towards the remove duplicates is very good 😉

  • @mayankukarde9288
    @mayankukarde9288 7 месяцев назад +2

    For question - Check if array is sorted or not
    Alternative way which we can write instead of writing blank IF body
    boolean isSorted = true;
    for(int i=1; i< n ; i ++){
    if(a[i] < a[i-1]){
    isSorted = false;
    break;
    }
    }
    System.out.print(isSorted);

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

    Understood thanks bhaiya 💌

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

    Understood. Thanks bhaiya.

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

    Best DSA series i ever watch
    Really it is better than paid course

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

    understood and very much appreciated

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

    best DSA playlist

  • @sahilbirnale3949
    @sahilbirnale3949 4 дня назад

    Brute , Better , Optimal .
    You are best 💻

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

    Understood Great explanation

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

    The first 6 minutes are more than sufficient for me to pass the whole semester tbh

  • @seriousname-uh6lq
    @seriousname-uh6lq 4 месяца назад +1

    u are so amazing, I really now like to study. Thanks

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

    This series is very helpful i requested to u plz make a oops video in depth

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

    Amazing videos sir.🙏

  • @ashokmunnuru-fe8xr
    @ashokmunnuru-fe8xr Год назад

    Understood Thank you Striver

  • @Enigma-fk7mh
    @Enigma-fk7mh 5 месяцев назад

    Thanks i truly understand the code & wondeful lecture :)

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

    Just searching for this from a long time

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

    Understood bhai
    Remove duplicates, 2 pointer method and Rest all problems take an element of the array, run the for loop and compare that element to the current value.
    Thank you Striver Bhai

  • @aliakbaransaria3-925
    @aliakbaransaria3-925 11 месяцев назад

    Very good explanation 👏 👌

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

    Understood pro max bhai, Jai Jagannath!

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

    You are great man in explaining the concept too much easy way ♥

    • @AtulRawat-sf2lw
      @AtulRawat-sf2lw Месяц назад

      bro college join krne wala hoon pls thoda sa guide kr dijiye

  • @ryanmathew6397
    @ryanmathew6397 11 месяцев назад +5

    Great!! I tried to make an algorithm using this same methodology to find kth largest element by making and vector of size k. but i came out to be O9n^3) it seems. But really great full for your explanation.

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

    Understood. thank you so much for this video.

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

    Simple and easy 👍

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

    Understood!
    Thank You so much

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

    Understood....Thank u striver❤

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

    Understood, Thank You!

  • @Omkar-fg4ws
    @Omkar-fg4ws 5 месяцев назад +1

    thank you so much bhiya , for providing dsa sheet and explaing the problems.

  • @joyjain3111
    @joyjain3111 5 месяцев назад +1

    Thankyou so much Raj!!!

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

    Thanks buddy for helping us!!!

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

    Understood, thank you very much bhai

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

    Awesome Explanation

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

    Best course for DSA