damn! this is by far the easiest tutorial on quick sort, others were making it too complex!, thanks greg!
This is the best...U saved my life
this is the easiest tutorial on quick sort I have seen
by counting sort you can define K = max(arr) - min(arr) + 1 , and with that you can also use it for negative numbers in the Array ;) Thanks for the nice Video!
GREG. TYSM. YOU SAVED MY GRADE IN DATA STRUCTURES.
@15:25 Greg says we can merge two sorted array in constant time but then proceed with traversing the sorted arrays . So wouldn't it be O(n) instead of O(1). Can anyone clarify this?
thank you greg you deserve a million subs!
For those wondering about negative numbers in counting sort: create a new variable "minn = min(arr)", then change "counts = [0] * (maxx + 1 - minn) and "for x in arr: counts[x-minn] += 1" finally "arr[i] = j+minn".
your content is incredible!
Great video! He sounds like Casually Explained too lol
Are these sorting methods considered as Two Pointers?
2:46
In the selection sort, shouldn't the outer loop be "for i in range(n-1)" instead of n? Because we don't need to do the last comparison since the last element will automatically be sorted. Also, the inner for loop at the last iteration will make the START (i+1) be 9, while the STOP (n) will be 8, resulting in an empty range that results in unnecessary swapping of the same elements at the end. Additionally, in the bubble sort, my implementation is different from yours but yours can be more efficient by adding a counter right? Like implement a counter next to the swapped variable, setting it to 0 at the moment. But for each while loop iteration, increment it by 1. This way, we can set the for loop into "for i in range(1, n-counter)", making the already sorted elements at the end not be checked anymore. Am I correct with my logic or am I wrong
Loving your series. What IDE are you using?
i'm following algomap, but don't see a link to this video in any of the sections, why?
Doesn't your implementation of quick sort use O(n log(n)) space as you are creating many new lists?
what software is he using to draw ?
should we master all these algorithms for a coding interview?
are you drawing using the mouse? i need these skills. lmaooo
@GregHogg