loading...

re: Merging Arrays in Javascript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think that as this is a series for relative beginners, it's important to emphasise the fact that often, simpler code is better than "faster" cod...

Yes of course, always write simple first, then measure performance and optimize where needed.
My point was that using properties like presorted arrays can allow you to go beyond the theoretical limit of O(n*log(n)) that a normal sorting algorithmus has.

Absolutely, definitely useful stuff to know!

Code of Conduct Report abuse