Counting Sort explained with animations and example | Full implementation and code

  Рет қаралды 15,505

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 34
@aliyanshaikh1547
@aliyanshaikh1547 2 жыл бұрын
Honestly, brother, you are godsent. Thanks so much for this video. You are one of the only channels I have seen that dry-run code together. I enjoyed every moment of this video
@nikoo28
@nikoo28 Жыл бұрын
Thank you for such a kind comment. Wish you all the luck in this upcoming year
@mariaghorayeb5986
@mariaghorayeb5986 2 жыл бұрын
So useful ! You explain amazingly well ! Keep it up !!
@charlesopuoro5295
@charlesopuoro5295 2 жыл бұрын
Great job. Thank you very much for taking the time to careful explain the Counting Sort Algorithm. It is one thing to know, it is another to inform or impart knowledge. You have done so. Thanks again.
@ssthil1
@ssthil1 Жыл бұрын
Perfect, it's clear to understand. Appreciated 👏🏼
@prashansapunjabi
@prashansapunjabi Жыл бұрын
Really cool explanation! Thanks.
@chetansai4275
@chetansai4275 3 жыл бұрын
A very good lecture .Thank you sir
@rojidansari6394
@rojidansari6394 2 жыл бұрын
What a great explanation 👍👍👍
@ebrahimkassem8939
@ebrahimkassem8939 3 жыл бұрын
Very helful and very good explanation.. Thank you sooo much
@manish-d2r
@manish-d2r 6 ай бұрын
great explaination
@funnymoment9164
@funnymoment9164 Жыл бұрын
Thanks!
@ayabc4320
@ayabc4320 3 жыл бұрын
Very useful! Thank you 🙏✨
@maisharana5405
@maisharana5405 3 жыл бұрын
thanks for the knowledge and it will help me to do my assignment.
@mohamedndaloma1383
@mohamedndaloma1383 9 ай бұрын
Great video by the way it was very helpful. Quick question though why do we have 6 occurances of 2 and just a single occurance of 3 when there should be 2 occurance of 3 and 5 of 2 when sorting the array for the final result?
@shortandshine8279
@shortandshine8279 6 ай бұрын
Gr8, thanks, could you please explain why cumulative and placing in output array with -1, should work
@wish7479
@wish7479 2 жыл бұрын
Hi sir, I have a doubt If I have integer arry={1,5,2,10,11,20} If you sort this array using Arrays.sort() - > o/p 1,10,11,2,20,5 Why it is sorting based on ASCII value? Why not sequentially 1,2,5,10,11,20 If you take list of string having alphanumeric type, how we can sort alphanumeric Ally. I am not able to solve this. Can you help me on this? Arrays.sort()-
@nikoo28
@nikoo28 2 жыл бұрын
Can you DM me on the email address in channel description.
@wish7479
@wish7479 2 жыл бұрын
@@nikoo28 sure sir
@wish7479
@wish7479 2 жыл бұрын
@@nikoo28 sir, I have sent mail to you.kindly look into it.
@thellaidhinesh8646
@thellaidhinesh8646 Жыл бұрын
Hey nikhil, I saw a lot of videos related to counting sort, yours is very easy to understand. Keep the good work going. The only issue is, I found the audio was not up to your explanatory skills. So please do consider some improvements in audio
@nikoo28
@nikoo28 Жыл бұрын
Do check my recent videos. I have fixed the audio :)
@LiswinGeorge
@LiswinGeorge Жыл бұрын
Since we're also finding a maximum and minimum number in the array. Isn't there a time complexity also involved in that?
@nikoo28
@nikoo28 11 ай бұрын
finding the maximum and minimum happens in O(n)
@CodeWithVinetha
@CodeWithVinetha Жыл бұрын
you mentioned counting sort follows stable in video?what is mean by stable sir?
@nikoo28
@nikoo28 Жыл бұрын
stable means that the ordering of elements does not change.
@shortandshine8279
@shortandshine8279 6 ай бұрын
Also for negative numbers how to make it work in python
@anniamatthews6803
@anniamatthews6803 2 жыл бұрын
Can you please make a video explaining and solving "The full counting sort" problem on hackerrank?
@saurabhsoni738
@saurabhsoni738 3 жыл бұрын
Please explain the code too
@nikoo2805
@nikoo2805 3 жыл бұрын
Starting at 11:04, you will see the code explanation
@mohdsalimullah2608
@mohdsalimullah2608 2 жыл бұрын
Superstar
@etiennedegaulle3817
@etiennedegaulle3817 3 жыл бұрын
Bad audio and doesn't account for negative numbers.
@madeinscript4623
@madeinscript4623 6 ай бұрын
Bro he teached very well don't blame bro
@Rahul_17_1
@Rahul_17_1 3 күн бұрын
Safe game bro..🤣🤣 wht if the number is negative. . ??
@nikoo28
@nikoo28 3 күн бұрын
then you offset the entire array with the least number available
10 Sorting Algorithms Easily Explained
10:48
Coding with Lewis
Рет қаралды 119 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Counting Sort
3:48
theteachr
Рет қаралды 40 М.
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 522 М.
Merge Sort with Visuals and Animations | Study Algorithms
16:38
Nikhil Lohia
Рет қаралды 6 М.
Learn Quick Sort in 13 minutes ⚡
13:49
Bro Code
Рет қаралды 434 М.
Counting Sort
11:29
Techdose
Рет қаралды 6 М.
Lec23: Comparison Count Sort Algorithm and Time Complexity
15:45
Engineering Wing
Рет қаралды 4,5 М.
Sorting Algorithms Explained Visually
9:01
Beyond Fireship
Рет қаралды 562 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.