| ▲ | KolmogorovComp 4 hours ago | |||||||
> making it very easy to go from O(n) to O(2n) Strictly speaking I assume everyone knows O(n) = O(2n) =O(kn) for k in R. But I see your point. I assume any decent compiler would merge the loops though | ||||||||
| ▲ | cupofjoakim 3 hours ago | parent | next [-] | |||||||
Fair! That'd depend on the operations right? For example, AFAIK typescript can't do much about multiple chained `map` calls, and i've seen quite a few `.filter(...).map(...).filter(Boolean).map(...)` :/ | ||||||||
| ||||||||
| ▲ | frwrfwrfeefwf 2 hours ago | parent | prev [-] | |||||||
what if k = n | ||||||||
| ||||||||