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

Oh wait, so you're not preserving the subsequence, you just preserving the sum. So it's a standard scan. So my original translation is correct, my subsequence preserving version is doing a bit more than this by preserving the subarray as well as the sum.


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

Search: