4 ms·
But only if you can split parts more or less evenly; in other case, numbers go down quickly...
by harperlee 12y ago
But only if you can split parts more or less evenly; in other case, numbers go down quickly...
- emmanueloga_ 12y agoTrue, in which case you can take some measures to avoid worst case inputs... I'm thinking randomization in quicksort, for instance.
- harperlee 12y agoI always liked a lot that solution ("adding noise"), it seems very elegant.