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

And the Queue has an O(n) remove operation, because it just uses Array.unshift. There are plenty of implementations with O(1) remove, like http://code.stephenmorley.org/javascript/queues/


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

Search: