Y
Hacker News
new
|
ask
|
show
|
jobs
by
iamevn
385 days ago
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)