Sort Colors or Sort an array of 0s, 1s, and 2s | LeetCode Solutions in Hindi | DSA | Dutch Flag Algo
Vložit
- čas přidán 25. 09. 2020
- This is the video under the series of DATA STRUCTURE & ALGORITHM. We are going to solve Questions from Leetcode Sort Colors or Sort an array of 0s, 1s, and 2s. Which is a very famous and Routine question asked in Interview. The question is from the Topics Data structure. A full easy concept in Hindi. This is Question is asked in Many companies like Google, Amazon, Oyo Rooms, Paytm, Samsung, Adobe, etc..
We also Provide courses on Competitive Programming and Data structure. Please see our Full Playlist on our Channel.
----------------------------------------------------------------------------------------
► Homework Question: leetcode.com/problems/find-nu...
----------------------------------------------------------------------------------------
► Sort Colors: leetcode.com/problems/sort-co...
► Sort an array of 0s, 1s, and 2s: practice.geeksforgeeks.org/pr...
► PDF of Sort Colors: github.com/Prince-1501/Hello_...
► CODE of Sort Colors: github.com/Prince-1501/Hello_...
----------------------------------------------------------------------------------------
*Follow me *
LinkedIn► / iamprince
Facebook► / helloworldofficials
Instagram► / helloworldbyprince
Twitter► / prince_king_
----------------------------------------------------------------------------------------
►Our Playlists on:-
►Competitive Programming : • How to start Competiti...
►C++ Full Course : • L-01 || Introduction a...
►Algorithms : • L-01 || Prefix Sum Arr...
►Data Structure : • Data Structures with C...
------------------------------------------------------------------------
Our Students Contacts Form:-
Form link: docs.google.com/forms/d/e/1FA...
------------------------------------------------------------------------
► Jarico - Landscape: / la. .
► Jarico - Landscape [NCS BEST OF]: • Video
------------------------------------------------------------------------
#interview_preparation #leeetcode #Hindi
before watching this video I had already watched 2-3 videos for the same question, but it was only through your video that i actually understood why are we shifting 'm' or 'l' or 'h'. This was the second-best thing in your video ... The best remains .. 'l' bole toh low,'m' bole toh middle and h bole toh high... (dimaag mein gaana chalne laga tha munna bhai mbbs ka )
Thanks a lot buddy
bhai tu bhi rhene de
Ek number bhaiya ji Garda udaa diya ek dam mn bam bam ho gya hooo aur banate rahiyega bhuliya nahi
Mast bhai 🤣🤣
only vedio that explains this question with most simplicity and in desi style 😀😛👍
Thank you so much 😀
this channel needs more likes and comments.
Exactly jahanvi 😃😃 u r right
Thanks, Prince Bhaiya. Nice approach.
The best explanation available on the entire CZcams. Thanks and Love your work:D
Thanks for your support ❤️
Exactly jo hum dhoondh rahe the. Aise hi explain karte rahiye, Prince ❣
Ekdum sure hum aisa hi samjhate rahenge Shambhavi
really understandable lecture sir, aap ki baate bahut acche se smhj aati hai
Very clear explaination!! Thanks bhaiya.
Thank you bhaiya mean arrays.sort.laga k pro ban raha tha. 😅😅😅
Fir aap ki video sea clear hua.
Thanks
Thank you for such a simple, elegant yet fantastic explanation...... It helped me a lot in easily grasping the concept!!! Thanks again!!!
Glad it was helpful!
Thank you so much for such a simply great explanation , only by this video i have actually understood the concept of flag switching.
Thanks sakshi
Exactly that's what I want to teach ☺️
Awesome explaination. Understood the logic behind the steps. Now I will not forget this concept. Thanks bhaiya
Thanks 😌 buddy keep sharing my channel with your friends and colleagues
Bhaiya, your way of explaining is always very helpful
Explaination was on next level Bhaiya.... Thank You ....
Dil kush kar dittta ❤️❤️❤️❤️ , good explanation
Thanks bro Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
Bhut ache se explain Kiya sr ❤
wahh bhaiya maza aa gaya apka samjhna ka tareka sa
one of the better ways to understanding question and question implimentation, thanks bhaiya
Always welcome
Best explanation for dutch national flag algorithm. Thanks Prince bhai
It's my pleasure
Bahut easy explaination tha, samaj gya aache se👍🏻
your teaching style is wonderful .you explain in very clear manner. best explanation ever found on the you tube.
Wow, thank you!
Nicely explained!!! 👌
I love your videos bhaiyya, you explain things so beautifully.
Thank you so much 😀
Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
really good explaination thanks sir
Aapka samjhane ka tareeka bohot accha hai, dheere samjhate hai aur jo bhi samjhate hai samjh me aa jaata hai....I have seen other videos as well but your way of explaining DS is very smooth and it is seen that you have spent time in understanding yourself.
Thanks a lot satvik, Keep learning buddy and Also share my channel with your college groups it will help me alot
@@HelloWorldbyprince I have graduated and working in a product based company. Will be giving my interview next week to change the job.
Best of luck buddy ❤️
Great! You showed all the ways to do it.
Thanks a lot Surbhi for your support ❤️
keep growing brother, love the way you explain problems and obviously your way of talking is like bade bhaiya pdha rhe ghar pe
Thanks a ton
simple logic with multiple approaches.
Waoooooooooooooooooooooooooooooooo
Thanks 😀😀
op explanation bhaiya💯💯
Bhai ny too aag hi lga dii industry M.
Hahahhaa
thanks a lot buddy
keep sharing my videos or channels in your colleges or groups
thanks for making this video......your explanation is just amazing.....I enjoy learning from u
Your welcome chhanda ❤️
Greatly Explained!!!
Nicely explain the approach!!!!!
Thanks Ayushi
The way you explain is top notch simple easy and amazing to listen
Thanks a ton
ek number bhai keep it up👍🏼
Thanks buddy
keep sharing my videos or channels in your colleges or groups
Thank you so much, the explanation was amazing!!
Your welcome 😃
Thanks brother ..sabka explanation dekha but apka samjh aya
Thanks Bikash .... please share my channel so others can also get benefits from @helloworld
Wow great explanation. Thank you so much Bhaiya
Always welcome
thanks bhyya great explanation thankss bhyya
really thankyou for giving such an easy explanation 😊
My pleasure 😊
Thank you sir for such an amazing explanation
You are most welcome
bahut badhya explanation guru ji :)
Thanks a lot buddy please share this video so that others can also get benefits from this
Bhaiya, bahut badhiya tha video, thank you so much💝
Keep sharing my channel with your friends and colleagues 🙂
Best explanation I have seen ever😀😀
Best comments i ever seen
I always come to your channel whenever i am struck.
really impressed by your teaching skills :)
Glad to hear that!
Thanks Bhaiya, Apka explanation ka tarika bohot acha hai, loved it.
Thanks bicky
Please keep sharing my videos or channels in your colleges or groups
Best approach ❤️
Thanks Abhishek
You're amazing sir! Keep up the good works
Thanks, will do!
Thank you!
thank you bhaiya, it helped me a lot 🙏🙏🙏
Glad to hear that
keep sharing my videos or channels in your colleges or groups
best explanation
Great explanation bro, Literally helpful 🤩🤩🤩
Keep learning buddy ❤️
Greatly explained...
Thank you 🙂
Nicely Explained 👍🏻
but we can improvise the 2nd method a little
instead of using for loop to put values in the new array, we can use while loop and a temp variable
i.e
temp=0;
while(count_zero--)
{
arr[temp++];
}
while(count_one--)
{
arr[temp++];
}
while(count_two--)
{
arr[temp++];
}
Thanks buddy
very very very welll explained😊
Thanks buddy
Bhaiya thanks for such a beautiful explanation
Keep sharing my channel with your friends and colleagues
Thanks alot brother it was a beautiful explanation, i will tell my friends to subscribe your channel. U will soon be at the top !!!
I appreciate your efforts bro u are helping many people to gain confidence in problem solving !!
Thanks a ton and its my pleasure if you helped me to reach on top❤
thankyou Bigbrother
Great Explanation....
Thanks abhay
how one can explain in such an amazing way! hat's off man. :)
Thanks Vivek
Keep learning buddy
@@HelloWorldbyprince Sure Man!
Awesome bro... explained very nice and easy
Thanks bhai
Awesome explanation brother
Keep learning buddy 🙂
Really helped🙂🙂...Thanks a lot
Yup, so now you helped others by sharing my channel with your friends and colleagues
very well expalined.
Thanks a lot 😊
Thank u soo much bhaiyaa😍
Thanks a lot Megha
keep sharing my videos or channels in your colleges or groups
Great explaination 👍👍
Glad it was helpful!
superb
Nice ree
greate video. Thanks
Glad you liked it! Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
element high ho toh h k baad pheko low ho toh l k phle pheko : this line was equal to last few videos i watched, combined.
Amazing
keep learning buddy and be consistent and share my channel with your college groups that helps me a lot
Really useful explanation 🙂
Glad it was helpful!
i don't know why he is getting less likes, this is working hard, good keep up
Wahi to ...log samjhte hi nahi hai 😁😁
Awesome bhaiya 🙏🙏🙏🙏👍👍
Thanks buddy
keep sharing my videos or channels in your colleges or groups
Sir you are great 🙏
So please share in your whatsapp group
@@HelloWorldbyprince already shared sir😊
Ultimate video 🤩
Thanks a lot bro
@@HelloWorldbyprince itne din se mai aapse pdh rha hu, ab placement bhi krwayiye kahi , chhoti companies bahut pareshan kr rhi h.
Reference dijiye thoda, aaphi ka student hu 😊.
Bhaiya your way of teaching is really awesome!! Please make more and more problem-solving videos.
Sure I will make
Leetcode wala playlist v aap start kardo side by side
@@HelloWorldbyprince bhaiya could you please send the link of leetcode playlist here?
amazing explanation
Glad it was helpful!
♥️♥️♥️
Thank you for such a beautiful explanation.
I had a doubt - Can't we substitute nums[m]=x inside the if conditions as well?
Why do we get the wrong answer?
Best explanation
Glad you think so!
Great job bro 👍
Thanks ✌
Veryy nice explanation bhaiya
Thank you so much 😀
When used sort function .... Gfg to us , chala ja 🤣😂
Nicely Explained
amazing yaar
Very helpful video
Glad it was helpful!
Thank you Bhaiya ❤️
Thanks for the support 😊
Bihari accent se hum to directly connect ho gaye. Aur samajh bhi achche se aaya. 😁
Hahahaha thanks yaar
very well explanation
Thanks yaar
Thank u sir
So nice of you
bro if an interviewer ask how can you tell sort() function takes nlog(n) time then how can one explain this?
nice video bhaiya
Please send my channel with your friends colleagues
The video is great, the only thing that you can do just zoom in while writing code because most of the people wathing on mobile and its not visible properly 😉. So if you zoom in this will be great 👍
Thanks for the tip
Thanks bhaiii
Your welcome 😃😃
hello sir you have explained in the very easiest way......I understood at once....
I need a little help that I am not able solve questions without looking their solution....
so what can I do to improve this
plzz reply......................
Thanks ☺️
You're welcome!
keep sharing my videos or channels in your colleges or groups
loved it
Thanks buddy
keep sharing my videos or channels in your colleges or groups
#completed ...homework question
Good
Thanks❤️
You're welcome 😊
thanku 😌bhaia
Your welcome 🤗