3 ms·
I'd love to know which of those algorithms still make sense in Python/Ruby/Javascript, or if their runtimes are slow that you would never, for example, implemen
by swah 13y ago
I'd love to know which of those algorithms still make sense in Python/Ruby/Javascript, or if their runtimes are slow that you would never, for example, implementing sorting in Python.
In other words: why do implement sorting in Java but not in Python/JS?
- pjscott 13y agoIn Java, you should almost always use the standard sort, which I believe is Timsort these days. This book is written in Java mostly because that's what CS students know, not because it's uniquely well-suited to the material. (That said, it's certainly not a bad fit.)