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

  Рет қаралды 1,671,776

take U forward

take U forward

Күн бұрын

Пікірлер: 1 100
@takeUforward
@takeUforward Жыл бұрын
Let's march ahead, and create an unmatchable DSA course! ❤ Use the problem links in description.
@ParasSharma-mf8or
@ParasSharma-mf8or Жыл бұрын
I will add it, don't worry
@mityamkumar1158
@mityamkumar1158 Жыл бұрын
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 Жыл бұрын
456 a to z start kar diye h 😊
@prithammahato1915
@prithammahato1915 Жыл бұрын
HAVE UNDERSTOOD_COMPLETELY
@039puneethbatchu2
@039puneethbatchu2 Жыл бұрын
Hello sir, You're so much passionate about teaching. Each and every word of your video goes into my mind . Thank you sir.
@brindhadhinakaran9672
@brindhadhinakaran9672 Жыл бұрын
Thanks
@RakeshRanjan-o2d
@RakeshRanjan-o2d 12 күн бұрын
hello
@bhaiookabhai
@bhaiookabhai Жыл бұрын
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 11 ай бұрын
bro where are you ?
@pratikdongre4376
@pratikdongre4376 8 ай бұрын
bhag gya kya padhai kr
@sambitpradhan1211
@sambitpradhan1211 8 ай бұрын
@bhaiookabhai kaaha tak pahuncahe dsa , mae aj start kar raha hun
@showdownx8276
@showdownx8276 6 ай бұрын
Arre bhai update to do .... gand faat gaya ki placement ho gaya ?
@manasisingh294
@manasisingh294 6 ай бұрын
@@pratikdongre4376 lmao
@mahmoodakhtar-df1ze
@mahmoodakhtar-df1ze 11 ай бұрын
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. ♥
@mindpower185
@mindpower185 Жыл бұрын
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
@SRIRAMS-he8gd
@SRIRAMS-he8gd 2 ай бұрын
kunal kuswaha can
@carryminatifun....6841
@carryminatifun....6841 Ай бұрын
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
@SatwikSharma21bcs080
@SatwikSharma21bcs080 8 ай бұрын
✦ Introduction to Arrays in DS Algo course 00:04 ✦ Defining array globally and accessing its elements 02:30 ✦ Optimizing solutions in interviews is crucial 07:11 ✦ Identifying the second largest element in an array using a brute force solution and the optimal solution. 09:21 ✦ To find the second largest element in an array, start from the back and compare elements with the largest. 13:40 ✦ Brute force approach to find second largest element in array 15:53 ✦ Algorithm for finding second largest element in an array 20:17 ✦ Algorithm to find the second largest element in an array 22:24 ✦ Finding the second largest element in an array 26:31 ✦ Check if array is sorted in non-descending order 28:39 ✦ Modify given array to find unique elements 32:36 ✦ Removing duplicates and finding second largest element using sets 34:40 ✦ Finding the second largest element in an array. 38:50 ✦ Two pointer approach for finding second largest element in array Click to expand 41:00
@shubhrajit2117
@shubhrajit2117 Жыл бұрын
At 34:28 the set can be made simply as set st(arr, arr + n);
@VinayakMahadev11
@VinayakMahadev11 2 ай бұрын
Is there a set in c++? Do I need to include any header file for using it
@shubhrajit2117
@shubhrajit2117 2 ай бұрын
@VinayakMahadev11 Just use # include You won't need any other header file then.
@VinayakMahadev11
@VinayakMahadev11 2 ай бұрын
@@shubhrajit2117 tysm bro
@yhbarve
@yhbarve Жыл бұрын
The 2-pointer method is so efficient compared to brute force...and it's so short as well...loved it! Understood
@CodewithKing360
@CodewithKing360 11 ай бұрын
can you tell me in code to find slarge why we write elseif block
@abhisheksharma9425
@abhisheksharma9425 11 ай бұрын
@@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; }
@CodewithKing360
@CodewithKing360 4 ай бұрын
@@vedikamishra009 thanks brother tab mera dimag chota tha array ke next level ke question solve karne ke bad vah apne aap samaz aa gayatha
@Dev2.0
@Dev2.0 Жыл бұрын
Completed DP series... That's pure Gold.. Now watching this series to revise concepts.... Striver Bhaiya You are my inspiration 🥺🥺
@AppaniMadhavi
@AppaniMadhavi Жыл бұрын
Is that Dp series helpful to clear google dsa rounds??
@saswatrath4646
@saswatrath4646 10 ай бұрын
yes, super helpful uske sath agar love babbar and interviewbit ka addditional questions laga dega to interview bhi clear ho jayega @@AppaniMadhavi
@AppaniMadhavi
@AppaniMadhavi 10 ай бұрын
Tq for giving clarity@@saswatrath4646
@aditiapar9355
@aditiapar9355 7 ай бұрын
@@saswatrath4646 bs dp mei ya har topic mei in dono k additional question lgao?
@the-shivanshmittal
@the-shivanshmittal 2 ай бұрын
So i am a total fan of Kunal Kushwaha for DSA, and this was the first video I saw after many friends said to give a try. I must say for problems oriented DSA, this is good. Now, I can keep a balance between theory clearance and questions practice. Kudos to both mentors.
@amansayer4943
@amansayer4943 14 күн бұрын
KUNAL IS W in theory
@jaykaantshikre751
@jaykaantshikre751 Жыл бұрын
Understood , Never thought easy problems could be solved with such optimal solutions.
@Manishgupta200
@Manishgupta200 Жыл бұрын
Superb Striver. The Removed duplicates was much thinkable but solved finally. Thankyou for such an amazin tutorial
@chintamanipala
@chintamanipala Жыл бұрын
I loved your teaching style as well as how we can build our logic from a brute force approch to optimal approch ❤❤❤
@siddhant2943
@siddhant2943 Жыл бұрын
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.
@anuragsingh-c1x
@anuragsingh-c1x Жыл бұрын
bro i am starting dsa. how is strivers for that? also apne kitna kaar liya hai
@yourcaremail
@yourcaremail Жыл бұрын
@@anuragsingh-c1x 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.
@anishaa3298
@anishaa3298 2 ай бұрын
there was once in an interview, I was able to sort numbers from two sets of arrays, but I couldn't find second largest element. What you said in 13:38 is so true. Now I will never forget that question.
@thefourhourtalk
@thefourhourtalk Жыл бұрын
this course your explanation is just wow ; I am regretting that this piece of gold Ive found a bit late
@AbhishekSingh-mh2fg
@AbhishekSingh-mh2fg Жыл бұрын
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.
@parthkandwal8343
@parthkandwal8343 Жыл бұрын
You are doing an amazing job Sir by providing such brilliant content. Thank you very much Sir.
@thor1626
@thor1626 Жыл бұрын
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)
@webtestingui7187
@webtestingui7187 Жыл бұрын
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
@abhijeetmishra3804
@abhijeetmishra3804 Жыл бұрын
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.
@pranshuatrey
@pranshuatrey Жыл бұрын
My damm god, how on earth anyone can teach so brilliantly. Sir u are such a gem.. 💎💎💎💎
@meegha2697
@meegha2697 5 ай бұрын
Yeah 🙌
@The_yellow_flash-07
@The_yellow_flash-07 8 ай бұрын
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 Жыл бұрын
Just completed. It was amazing, the way you explain, hats off to you Thank you.
@VishnuKumar-vi8hh
@VishnuKumar-vi8hh Жыл бұрын
It was great learning Thanks❤ Bhaiya I have now more interested in coding after seeing your playlist , always feels motivated.
@AkshayP-x2t
@AkshayP-x2t Жыл бұрын
Great explanation, no rocket science and maths, Thank you for such great content.
@vikhashjp
@vikhashjp 11 ай бұрын
Sir you're a Legend and I have a new interest in Coding after watching your videos and practicing constantly. Thank You ❤
@ayushi4411
@ayushi4411 Жыл бұрын
Sir plz upload the videos as soon as possible coz we have to wait for a single video for about two weeks 🥹🥲
@takeUforward
@takeUforward Жыл бұрын
Yes we are going every alternate day now!
@ayushi4411
@ayushi4411 Жыл бұрын
@@takeUforward thanks sir!!!
@prajwalpatil9055
@prajwalpatil9055 Жыл бұрын
Yes sir ur videos are best for revising dsa
@Lucifer-xt7un
@Lucifer-xt7un Жыл бұрын
​@@takeUforward sir please upload videos alternatively as promised becoz relaying on you completely🥺🥲
@BhanuPratapSinghRajawat-iz2tf
@BhanuPratapSinghRajawat-iz2tf Жыл бұрын
@@Lucifer-xt7un BRO HE IS PROVIDING THE BEST FREE CONTENT OF DSA AND ALSO HE IS A SOFTWARE ENGINEER AT GOOGLE SO HE HAVE TO DO HIS WORK TOO SO PLZ TRY TO UNDERSTAND HOW MUCH BUSY HE IS BUT STILL HE IS PROVIDING THE BEST CONTENT TO US
@vidushibhardwaj1415
@vidushibhardwaj1415 11 ай бұрын
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❤
@Me_Meraj
@Me_Meraj Жыл бұрын
Best DSA series i ever watch Really it is better than paid course
@Prasadk2003
@Prasadk2003 6 ай бұрын
Today I began the journey of solving problems of DSA , Thank you striver for this great series
@ParasSharma-mf8or
@ParasSharma-mf8or Жыл бұрын
0:39 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 in c++ 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 coding implementation 31:26 Remove duplicates in place from sorted array 40:40 Pseudo code 42:12 coding implementation Time complexity is O(n) and space complexity is O(1) for all optimal approaches
@takeUforward
@takeUforward Жыл бұрын
Thank you!!
@Unknown-ng8me
@Unknown-ng8me Жыл бұрын
@@takeUforward Please make video on OOPs concepts.
@umakantbhosale4718
@umakantbhosale4718 Жыл бұрын
​@@takeUforwardJava collection tab is empty in your course. Please add good resource to learn for it.
@ANUJKUMAR-wc9dz
@ANUJKUMAR-wc9dz Жыл бұрын
@@umakantbhosale4718 for Java collection you can watch riddi dutta video
@brajeshmohanty2558
@brajeshmohanty2558 Жыл бұрын
@@ANUJKUMAR-wc9dz bhai notes nahi milraha hai site pai Kahan pei mil sakta hai notes
@JhonAbraham-t4c
@JhonAbraham-t4c 6 ай бұрын
love this man the way you explained ,no one explain like you before ,this is the way of teach the code100%.
@vilen2685
@vilen2685 Жыл бұрын
I'm enjoying now to do DSA !!! Thanks Striver, thanks a lot.
@Btsarmylachimola
@Btsarmylachimola 4 ай бұрын
started today, the video is very well explained. and I will comment on every single video after it is completed.
@data-ai-yt
@data-ai-yt 11 ай бұрын
The first 6 minutes are more than sufficient for me to pass the whole semester tbh
@Simple_learn123
@Simple_learn123 2 ай бұрын
Actually started enjoying DSA the moment I started watching you! big thanks
@mehaksharma9391
@mehaksharma9391 Жыл бұрын
we know your schedule is quite busy but still is a requestttt videos jldi upload kro bhaiya placements haiiiiii...and dsa ap hi se pdnaaa hme
@takeUforward
@takeUforward Жыл бұрын
Yes we are going every alternate day now!
@Tussu17
@Tussu17 8 ай бұрын
Ho gaye placement aapki?
@TunTunTanu
@TunTunTanu 5 ай бұрын
bhai as striver has not uploaded the string video from where can i watch that videos?
@sarthakkhandelwal3915
@sarthakkhandelwal3915 Жыл бұрын
Best course for dsa 🔥🔥
@samlinus836
@samlinus836 Жыл бұрын
Such a big thing to share your knowledge in this free platform while there r lots of paid platforms... Thanks a lot Understood bruh
@JohnCena-uf8sz
@JohnCena-uf8sz 6 ай бұрын
I am watching in sequence, the best explanation frrrr.. SOME ONE REMIND ME TO STUDY BY LIKING THE COMMENT
@pranavmahendra3423
@pranavmahendra3423 Жыл бұрын
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
@byteeeeeeee
@byteeeeeeee Жыл бұрын
Hey there!! I'm currently in my sixth semester. I want to revise my DSA for my placements, which start next semester. Just leaving a comment to keep track of my progress.
@grinding-ffs
@grinding-ffs 6 ай бұрын
how are ur placements
@Anurag78183
@Anurag78183 2 ай бұрын
Placed ?
@aayushsingh5614
@aayushsingh5614 Жыл бұрын
This guy will make every BUSINESS TEACHER'S business down for sure.....
@AmartyaPardeshi
@AmartyaPardeshi Жыл бұрын
Great efforts, thanks for this precious course!
@vishalkumar-ej1oq
@vishalkumar-ej1oq 14 күн бұрын
Just watched the first video. It was a great explanation! I'm just pinging here so that I can update my comment after watching each video. 1. Find Second Largest Element in Array | Remove duplicates from Sorted Array | Arrays Intro Video -28-01-2025
@priyanshi3265
@priyanshi3265 Жыл бұрын
Thank you striver for the amazing explanation 😊
@MaheshKumar-jc8sp
@MaheshKumar-jc8sp 6 ай бұрын
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.
@tunapradhan7571
@tunapradhan7571 Жыл бұрын
Bhaiya dsa to Kara rahe ho aaap but sometimes we get frustrated because sometimes after giving sufficient amount of time I can't able to solve a single question also Like in your graph series,you taught absolutely in a excellent way ,but the problems is ki I can't able to solve any of those questions by myself..so can you please upload a session a video in this on KZbin
@PrithaMajumder
@PrithaMajumder 8 ай бұрын
Raj, Thanks a lot for This Amazing Video about C++ Arrays Video - 1 Completed ✅
@cinime
@cinime Жыл бұрын
Understood! Super fantastic explanation as always, thank you very much!!
@jeeveshkumar9682
@jeeveshkumar9682 Жыл бұрын
understood, and the idea of not making very long videos is superb. Long videos are scary. thanx for ur efforts
@ryanmathew6397
@ryanmathew6397 Жыл бұрын
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.
@rariraj4858
@rariraj4858 4 ай бұрын
Understood. Perfect explanation. Easy to follow.Thanks so much Striver 😇
@codeedict3919
@codeedict3919 Жыл бұрын
Understood...🔥🚀🔥 || Loving it so far. Thanks for amazing content.
@Juhi_Kalra
@Juhi_Kalra 5 ай бұрын
Understood (in 2024) 👍Thanks for making this series🙌
@cheddar4848
@cheddar4848 Жыл бұрын
Hello striver. The python code in the remove duplicates article is incorrect, as in python the set does not store the values in an ordered way. So while replacing the items in the original list, the updated list might not be sorted. What we can do to fix this is convert set into a list and sorting it, before iterating through it and updating in the original array. Correct Implementation: def removeDuplicate(arr, n): res = list(set(arr)) res.sort() i=0 for item in res: arr[i] = item i+=1 return len(res)
@rnjnmhta.catomato
@rnjnmhta.catomato Жыл бұрын
your explanation feels like pure science! beautiful man
@vatsalsharma6384
@vatsalsharma6384 Жыл бұрын
For the last question of removal of duplicates, for the brute force approach, instead of storing it in the set data structure, if we try to store it in a vector again by just putting a condition at the entry that (enter the vector only if you are different from the previous element). Then time complexity will reduce to O(n), and space complexity will be O(1). Am I right????
@Rks2302
@Rks2302 Жыл бұрын
for a particular element to put in vector we need to look for all the elements already present in vector.. time complexity would be 0(n^2)
@an__kit
@an__kit Жыл бұрын
@@Rks2302 We don't have to look for every element in vector just put the value in temp variable which you entered last and when find the next different value push it into new vector formed and update the temp variable. I think that will work.
@Rks2302
@Rks2302 Жыл бұрын
@@an__kit suppose already my vector has {1,2,3} elements and by your logic temp=3 and suppose the next element to be inserted is 1 again and since temp is different from 1 another 1 would be inserted isnt it!?
@an__kit
@an__kit Жыл бұрын
@@Rks2302 No we will check for greater element to insert as given array is sorted.
@Rks2302
@Rks2302 Жыл бұрын
@@an__kit my bad..yes ur correct didnt noticed the array is sorted🥲
@inspirationalyouthicons4998
@inspirationalyouthicons4998 Жыл бұрын
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
@abbas__00
@abbas__00 Жыл бұрын
Sir , please put all videos in one playlist named DSA because that would be easy for us to watch one by one ....... please sir 🥲
@takeUforward
@takeUforward Жыл бұрын
It is already there!
@confused_bandaa
@confused_bandaa Ай бұрын
im in final year and found most suitable video its not time wasting .
@venugopal_2003
@venugopal_2003 Жыл бұрын
great! understood very well
@sujal.t.s8461
@sujal.t.s8461 11 ай бұрын
we use this loop to find 2nd largest element int max1=0,max2=0;; for(auto it:arr) { if(it>max1) { max2=max1; max1=it; } } cout
@KoushikDas2005
@KoushikDas2005 11 ай бұрын
Why max1 and max2 are initialised to 0 , if it's not existing in the array or even if it's existing in the array, it will result in an error only. Rather it should be max = arr[0] , max2= Integer.MIN_VALUE or you can take both as any arbitrary small value just like I have done in Java. But taking 0 and checking it will give you wrong results
@Codewithdtuguy
@Codewithdtuguy Жыл бұрын
bhaiya in second largest element question , how can u return an integer value when the function return a vector ?
@takeUforward
@takeUforward Жыл бұрын
Follow it properly the code
@JunaidAnsari-my2cx
@JunaidAnsari-my2cx Жыл бұрын
I think the function took a vector as input, and we were to return an integer value
@senseiAree
@senseiAree Жыл бұрын
int secondLargest(...) It is returning integer by definition... Hope your doubt was resolved 5 months ago
@MaheshKumar-jc8sp
@MaheshKumar-jc8sp 6 ай бұрын
Excellent Mento till date, great conceptual briefing.
@Josuke217
@Josuke217 7 ай бұрын
Started this playlist: 13/7/2024
@vikramkumarsoni5283
@vikramkumarsoni5283 6 ай бұрын
U did any other playlist before?
@AmandeepSingh-rd6ql
@AmandeepSingh-rd6ql 6 ай бұрын
Finished on same date bro best of luck for your journey
@gladiator8316
@gladiator8316 6 ай бұрын
​@@AmandeepSingh-rd6qlBro what's your opinion on this course
@pallikantisanthoshkumar2671
@pallikantisanthoshkumar2671 5 ай бұрын
How much did your improve​@@AmandeepSingh-rd6ql
@TunTunTanu
@TunTunTanu 5 ай бұрын
@@AmandeepSingh-rd6ql bhai as striver has not uploaded the string video from where can i watch that videos?
@Omkar-fg4ws
@Omkar-fg4ws 11 ай бұрын
thank you so much bhiya , for providing dsa sheet and explaing the problems.
@senseiAree
@senseiAree Жыл бұрын
I am a pretty fast thinker so I was not having much problem but my anxious brain asked me how on earth is he writing those code so freaking fast... I realised I was listening to 1.5x speed.
@sudeepgupta57
@sudeepgupta57 8 ай бұрын
What is your code forces rating
@nikhilkashyap3537
@nikhilkashyap3537 5 ай бұрын
2nd questions answer: vector getSecondOrderElements(int n, vector a) { int max = *max_element(a.begin(), a.end()); int min = *min_element(a.begin(), a.end()); int big = 0, small = max; for (int i = 0; i < n; i++) { if (a[i] > big && a[i] != max) big = a[i]; if (a[i] < small && a[i] != min) small = a[i]; } return {big, small}; } with time complexity: O(n) and space complexity: O(1).
@Anurag_Singh_98
@Anurag_Singh_98 3 ай бұрын
9 Nov 2024 completed ☑
@madhukiran8093
@madhukiran8093 Жыл бұрын
Helpful in getting back on track after a long Break
@avipatel7106
@avipatel7106 2 ай бұрын
Understood striver! Very good explaination. Thank you for such videos. We appreciate your efforts. Thanks again! ☺
@gulshankumar9896
@gulshankumar9896 9 ай бұрын
Mindblowing video on arrays in c++ ; thanks striver bhaiya for providing all these awesome materials at free of cost ; 😇
@muralidharreddy8981
@muralidharreddy8981 9 ай бұрын
In java if check the array is sorted: public class Solution { public static int isSorted(int n, int []a) { // Write your code here. for(int i=0;ia[i+1]){ return 0; } } return 1; } }
@druvabhagavatula
@druvabhagavatula 4 ай бұрын
Understood Bhaiya but I had a small doubt in Sorted and rotated problem only all are super cool 🔥🔥🔥🔥
@shokir_a_pardaev
@shokir_a_pardaev 3 ай бұрын
Your teaching style is awesome with passion and energy. What program do you use to write and teach? it looks cool. It would be great if you can also make short video on how you teach and record your classes. Thank you.
@Deepak-hv8uh
@Deepak-hv8uh Жыл бұрын
bhai ne kya gajab samjhaya hai, maza aa gaya
@chaitu11
@chaitu11 4 ай бұрын
Awesome teaching just fall in love with coding
@MaheshKumarS-mt6ot
@MaheshKumarS-mt6ot 7 ай бұрын
thank you brother for this kinda of efforts !!! definitely it will help me a lot to get placed in reputed company🤗🤩
@CodewithKing360
@CodewithKing360 11 ай бұрын
Bhaiya your approach towards the remove duplicates is very good 😉
@VikashKumar-tg3ot
@VikashKumar-tg3ot 10 ай бұрын
I UNDERSTOOD EVERYTHING .
@letsdecodewithharsh
@letsdecodewithharsh 8 ай бұрын
You are great man in explaining the concept too much easy way ♥
@AtulRawat-sf2lw
@AtulRawat-sf2lw 8 ай бұрын
bro college join krne wala hoon pls thoda sa guide kr dijiye
@rammohan7480
@rammohan7480 5 ай бұрын
The way you are explanation is very understandable bro thank you
@MansiAggarwal-m4f
@MansiAggarwal-m4f 16 күн бұрын
maza hi aa gya , understood very well . Thanku so much sir
@mindiscurious9870
@mindiscurious9870 2 ай бұрын
Best explanation. Still in 11 but understood clearly.
@kavyanshsrivastava4211
@kavyanshsrivastava4211 11 ай бұрын
Left rotation of array by one position can be simply done by: - arr.push_back(arr[0]); arr.erase(arr.begin()); return arr; No traversal needed. Hence reduces time complexity.
@Anmol-dz7sx
@Anmol-dz7sx Жыл бұрын
In the last question while applying the brute force approach by using set data structure the overall time complexity mentioned is O(n*log(n))+O(n), whereas the actual time complexity to insert elements in a set data structure is O(log(n)) + The time complexity to iterate over the set elements using the for loop is O(n). So The Overall time complexity will be O(log(n)) + O(n). Please Correct Me If I'm Wrong!
@dhanushm9166
@dhanushm9166 Жыл бұрын
For inserting a single element the time complexity is O(log n) here we need to insert all the elements in the array suppose in worst case we may have n elements so the time complexity for inserting n elements O(nlogn) after that he puts the unique elements back to starting position of the array so for that tc is O(n) and now the overall tc is 0(nlogn +n) ....
@impalash_ag
@impalash_ag 7 ай бұрын
Hi Raj, Just a reminder, HashSet in JAVA doesn't contain elements in any order, hence to maintain the sorted order TreeSet needs to be used.
@RailExpressbyPreetam
@RailExpressbyPreetam 6 ай бұрын
The way you explained largest element ❤❤
@secretdreams201
@secretdreams201 Жыл бұрын
Thankyou for giving this well structured course.
@mayankukarde9288
@mayankukarde9288 Жыл бұрын
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);
@balakrishna6240
@balakrishna6240 5 ай бұрын
I love the way you are teaching, awesome
@priyanshu4016
@priyanshu4016 22 күн бұрын
great videos , learning a lot from you videos , thanks for creating such great video series .
@sahilbirnale3949
@sahilbirnale3949 6 ай бұрын
Brute , Better , Optimal . You are best 💻
@AnkitPatel04
@AnkitPatel04 9 ай бұрын
This content for foreign people who have good English accent 😅 , video really fast for me and not unstable for me, 😊
@shameemahamad2617
@shameemahamad2617 5 ай бұрын
Big thumb 👍 for providing such exceptional remarkable contents.
@vasukumar9645
@vasukumar9645 3 ай бұрын
Excellent teaching Everything Understand
@worthlessguy1621
@worthlessguy1621 11 ай бұрын
Thank you striver for putting so much effort into making these videos. Thank you again :)
If Your Hair is Super Long
00:53
im_siowei
Рет қаралды 30 МЛН
Непосредственно Каха - бургер
00:27
К-Media
Рет қаралды 3,2 МЛН
Боксёр воспитал дикого бойца!
01:36
МИНУС БАЛЛ
Рет қаралды 4,9 МЛН
What if all the world's biggest problems have the same solution?
24:52
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Next Permutation - Intuition in Detail 🔥 | Brute to Optimal
28:15
take U forward
Рет қаралды 537 М.
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 77 МЛН
How to Become a Data Scientist in 2025
13:26
Sundas Khalid
Рет қаралды 9 М.
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 353 М.
The Bubble Sort Curve
19:18
Lines That Connect
Рет қаралды 774 М.
If Your Hair is Super Long
00:53
im_siowei
Рет қаралды 30 МЛН