3 ms·
You can't just learn what you need today without having the culture to understand what you're reading. Dumb example: counting sort is fast! Ok let's use it. Th
by bombolo 4y ago
You can't just learn what you need today without having the culture to understand what you're reading.
Dumb example: counting sort is fast! Ok let's use it. Then your data happens to be an array of 2 elements -10000000 and +10000000.
Or the classic "let's parse a math expression with regular expressions".
- zerodensity 4y agoI mean 2 element arrays will be fast to sort.
- bombolo 4y agoThe 2 element array in my example will be very slow to sort with counting sort, and you didn't notice. Exactly the point I was trying to make when saying that knowing theory is useful :)