use algorithmatic.com's in-browser integrated-development-environment here. The IDE offers syntax-highlighting, realtime validation, syntax-autocompletion, autocompletion for external-calls, interpreter and basic debugging.
Account
signin
algorithmatic.com uses OpenID - that means you don't need to register, probably you already have an OpenID, you just need to enable it. Click here to sign in
Probably, but I thought it might be more convenient for people to see both implementations together. The IF statements and comparisons in Execute() definitely slow it down a lot. Was getting ~80ms in the debugger.
Quicksort is a well-known sorting algorithm developed by C. A. R. Hoare that, on average, makes O(nlogn) comparisons to sort n items. In the worst case, it makes O(n2) comparisons. Typically, quicksort is significantly faster in practice than other O(nlogn) algorithms, because its inner loop can be efficiently implemented on most architectures, and in most real-world data, it is possible to make design choices which minimize the probability of requiring quadratic time.
Quicksort is a comparison sort and, in efficient implementations, is not a stable sort.
If the array is returned the same, then it did not recognize the Version string.