Hacker News new | past | comments | ask | show | jobs | submit login

Most of these are possible to combine (see for example https://github.com/BonzaiThePenguin/WikiSort), but I feel that this subset is impossible together:

  - Operates in place, requiring O(1) extra space.  
  - Worst-case O(n·lg(n)) key comparisons.  
  - Worst-case O(n) swaps.
I don't have a formal proof, but I believe one should be possible.



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

Search: