Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iamevn
8 months ago
|
parent
|
context
|
favorite
| on:
Silly job interview questions in Haskell
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:
(the final filter sums k elements nCr(n, k) times as well)