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

The reason the first element is used as the pivot is that these are linked lists, not arrays, so it would take linear time to access the middle and end. This isn't a real quicksort.


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

Search: