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
Let's march ahead, and create an unmatchable DSA course! ❤
Use the problem links in description.
I will add it, don't worry
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... 😂
456 a to z start kar diye h 😊
HAVE UNDERSTOOD_COMPLETELY
Hello sir, You're so much passionate about teaching. Each and every word of your video goes into my mind . Thank you sir.
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!
bro where are you ?
bhag gya kya padhai kr
@bhaiookabhai kaaha tak pahuncahe dsa , mae aj start kar raha hun
Arre bhai update to do .... gand faat gaya ki placement ho gaya ?
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
The 2-pointer method is so efficient compared to brute force...and it's so short as well...loved it! Understood
can you tell me in code to find slarge why we write elseif block
@@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;
}
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. ♥
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.
I loved your teaching style as well as how we can build our logic from a brute force approch to optimal approch ❤❤❤
Understood , Never thought easy problems could be solved with such optimal solutions.
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.
bro i am starting dsa. how is strivers for that? also apne kitna kaar liya hai
@@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.
At 34:28 the set can be made simply as
set st(arr, arr + n);
Superb Striver. The Removed duplicates was much thinkable but solved finally. Thankyou for such an amazin tutorial
You are doing an amazing job Sir by providing such brilliant content. Thank you very much Sir.
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!
Just completed. It was amazing, the way you explain, hats off to you
Thank you.
this course your explanation is just wow ; I am regretting that this piece of gold Ive found a bit late
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.
Understood! Super fantastic explanation as always, thank you very much!!
It was great learning Thanks❤ Bhaiya
I have now more interested in coding after seeing your playlist , always feels motivated.
Completed DP series... That's pure Gold..
Now watching this series to revise concepts....
Striver Bhaiya You are my inspiration 🥺🥺
Is that Dp series helpful to clear google dsa rounds??
yes, super helpful uske sath agar love babbar and interviewbit ka addditional questions laga dega to interview bhi clear ho jayega @@AppaniMadhavi
Tq for giving clarity@@saswatrath4646
@@saswatrath4646 bs dp mei ya har topic mei in dono k additional question lgao?
Great explanation, no rocket science and maths, Thank you for such great content.
Great efforts, thanks for this precious course!
your explanation feels like pure science! beautiful man
I'm enjoying now to do DSA !!!
Thanks Striver, thanks a lot.
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)
Understood...🔥🚀🔥 || Loving it so far. Thanks for amazing content.
Thank you striver for the amazing explanation 😊
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
understood, and the idea of not making very long videos is superb. Long videos are scary.
thanx for ur efforts
Thank you striver for putting so much effort into making these videos.
Thank you again :)
Such a big thing to share your knowledge in this free platform while there r lots of paid platforms... Thanks a lot
Understood bruh
Helpful in getting back on track
after a long Break
Thankyou for giving this well structured course.
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❤
Started this playlist: 13/7/2024
U did any other playlist before?
This course helped me a lot. Thankyou bhaiya!
Excellent Mento till date, great conceptual briefing.
Thank you for this video, I understood whole concept which was discussed in this video.
My damm god, how on earth anyone can teach so brilliantly. Sir u are such a gem.. 💎💎💎💎
Sir you're a Legend and I have a new interest in Coding after watching your videos and practicing constantly. Thank You ❤
Understood! Thanks a lot striver for this amazing content. Love from Kolkata
mind blowing explaination man . thank you for this content makes more and more
waited since afternoon for this... now starting
Thanks for the amazing explanation. You earned yourself a subscriber!
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.
Raj, Thanks a lot for This Amazing Video about C++ Arrays
Video - 1 Completed ✅
great! understood very well
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
you are doing a great job striver.
bhaiyya aapse hi sikha he sab kuch, thankyou again raj bhaiyya
Understood! your explanation was excellent ❤
hey man I really really respect you as a person.
Awesome lecture bhaiya❤
This consistency is what I'm expecting bhaiya
Amazing explanation !
Awesome explanation striver🔥
Mindblowing video on arrays in c++ ;
thanks striver bhaiya for providing all these awesome materials at free of cost ;
😇
Best course for dsa 🔥🔥
You are so good in simplifying things
Today I began the journey of solving problems of DSA , Thank you striver for this great series
Understood everything, Thanks a lot
bhai ne kya gajab samjhaya hai, maza aa gaya
very great explaination, understood sir!
wonderful explanation understood!!
Thank you for such a wonderful content
understood everything ,thank you for this amazing video
Understood clearly bhaiya !!
This guy will make every BUSINESS TEACHER'S business down for sure.....
Thankyou for your efforts and knowledge for us 😊
Bhaiya your approach towards the remove duplicates is very good 😉
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);
Understood thanks bhaiya 💌
Understood. Thanks bhaiya.
Best DSA series i ever watch
Really it is better than paid course
understood and very much appreciated
best DSA playlist
Brute , Better , Optimal .
You are best 💻
Understood Great explanation
The first 6 minutes are more than sufficient for me to pass the whole semester tbh
u are so amazing, I really now like to study. Thanks
This series is very helpful i requested to u plz make a oops video in depth
Amazing videos sir.🙏
Understood Thank you Striver
Thanks i truly understand the code & wondeful lecture :)
Just searching for this from a long time
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
Very good explanation 👏 👌
Understood pro max bhai, Jai Jagannath!
You are great man in explaining the concept too much easy way ♥
bro college join krne wala hoon pls thoda sa guide kr dijiye
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.
Understood. thank you so much for this video.
Simple and easy 👍
Understood!
Thank You so much
Understood....Thank u striver❤
Understood, Thank You!
thank you so much bhiya , for providing dsa sheet and explaing the problems.
Thankyou so much Raj!!!
Thanks buddy for helping us!!!
Understood, thank you very much bhai
Awesome Explanation
Best course for DSA