The wonky skittle problem 🫠

preview_player
Показать описание
The wonky skittle problem 🫠 #compsci #coding #fyp
Рекомендации по теме
Комментарии
Автор

Bad metaphor because i guarantee that took longer even with the cuts than it would have taken me to sort it 🤣

Tomohiko_Tatsuno
Автор

Thats not fair youre able to move skittles by snapping

rishterm
Автор

Mergesort's worst case isnt o(logn) its o(nlogn)

arbitrario
Автор

Using bigO notation and explaining what problem size this method is efficient with would make this a lot better

alastairtut
Автор

Bucket sort is way faster in this example

liamberney
Автор

Pigeon hole sort is O(n), Merge Sort is O(nlogn). For n >= e, n <= n log n, because log n is above 1

totheth
Автор

even with the cuts thats way slower than just sorting them normally

JustAHat
Автор

Disclaimer: usually u break it down to subarrays of 1 and then sort as ur merging. I changed it up slightly for the visual demo

SajjaadKhader
Автор

Why didn’t u just snap once to sort the whole thing you’re clearly magical

tacomiester
Автор

Nah i could do this in 5 seconds no cuts

GrouseMan