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

The bubble sort has an off-by-one error: The outer loop has i go from 1 to A.length and then references A[i+1].



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

Search: