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

Sort of. Store the squares in a hash map with the value used to indicate whether you've already seen it.


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

Search: