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

can you not narrow it down further to O(k * nCr(n, k)) (n=size of input, k=combination size) since it does k conses for each of the nCr(n, k) combinations?

(the final filter sums k elements nCr(n, k) times as well)



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

Search: