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

Or those two should have been combined into O(nlogn) via sorting.


Or if you've already made allowances for the memory usage, you can also check to see if you can write your O(n^2) nested loops as O(n) + O(n) depending on the shape of your data.




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

Search: