Counting Sort

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I absolutely loved the graphics and animation in your video! You're not just a teacher, you're an artist too!

SongThrush
Автор

Explaining the algorithm using colors instead of index numbers made it so much easier to understand. 🙏🙏

abrarnizam
Автор

Only your video could make it straightforward for me to understand Counting Sort! Using colors instead of random numbers made it hit differently. 👏

sarah_nadi
Автор

Wow this is definitely the best explanation on counting sort! I finally figure it out. Thank you.

userjk
Автор

Bro this is the most easy and detailed instruction about counting sort. Wondering why it just not having more views and recommend. Hoping for more videos from you

_trancaovan
Автор

This is the 3rd video about counting sort i watched and you're the only one who explained the final step so that i understood it. U deserve more views

somecleverguy
Автор

whoever created counting sort, is a genius. It is like witchcraft.

swapnabirdutta
Автор

This is the best animation that I have seen for a programming video

aravinds
Автор

Thanks a lot, you really managed to explain simply and clearly how it works.

gabrioche
Автор

very clear explanation and clean graphics!! It would've been cool to have some explanation about the cost also, but fantastic job anyway!

fernandoguirao
Автор

THIS WAS THE BEST VIDEO I WATCHED ABOUT COUNTING SORT. I LOVED IT. THANK

zeinabjannati
Автор

Omg, what is this criminally underrated channel. I found a rare gem. Subbed instant(will watch everything eventho i have no exp)

Citrus_-ffqf
Автор

this video is underrated
Great effort ❤

didYouKnowArabic
Автор

Time Complexity: O(2n)
Space Complexity:
Best: O(1)
Avg: O(n)
Worst: O(n)

cpjchute
Автор

You should get more views. I usuallyt never comment but this was so good thanks bro

alitoto
Автор

Hey, I just wanted to say you're an inspiration with your teaching style and the animations. Do you create those in After Effects, or in Davinci Resolve or something like that?

MartinJaniczek
Автор

thank you so much for your work in making this!! very helpful

frog
Автор

i kept rechecking if the speed was at 1.25 but maybe i couldn't catch on because english isn't my first language

wjdn
Автор

Colors definitely make this harder to understand

hatelife
Автор

could you traverse the array from the beginning if you shift the prefix sum and start it at 0 then increment it instead of decrementing it?
in python that could look like

from itertools import accumulate, islice
from random import choices

N = 20
R = 5

x = choices(range(R), k=N)
y = [0] * N
counts = [0] * R

for n in x:
counts[n] += 1

indices = list(islice(accumulate(counts, initial=0), R))

for n in x:
y[indices[n]] = n
indices[n] += 1


print(*x)
print(*y)

halogenlightblob