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

You can't use merge sort or any other standard sorting algorithm in this case. All these algorithms assume you can compare any two elements. To use a sorting algorithm, you would need to be able to say for any two images which is further left.



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

Search: