Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

technically quick sort needs O(log N) additional space and it is still considered in-place. I guess the threshold for in-place-ness would be less than linear additional space?


quicksort is not stable. the disadvantage of classic mergesort is that it needs to copy elements out of the input array, although there exist (slower) in-place variations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: