3 ms·
I still don't see the memorization part. The last time I touched quicksort was at uni, three years ago, I still understand how it works (choose a pivot, partiti
by Toutouxc 6y ago
I still don't see the memorization part. The last time I touched quicksort was at uni, three years ago, I still understand how it works (choose a pivot, partition the rest according to the elements' relation to the pivot, then quicksort the partitions), and I'm pretty sure I'd be able to implement it right now. Maybe not in C, but in Ruby, absolutely.
Understanding is the hard part, the implementation should be the automatic part. I mean, we're programmers, right? We know how to shuffle arrays around and return values from functions.
- uglygoblin 6y ago"I still understand how it works" is memory. Maybe you have an amazing memory but imagine 15 years later.
- Taylor_OD 6y agoRight. At some point I could write quick sort out in my head, on paper, in a terminal. Right now? Not a chance.
- deleted 6y ago[deleted]