osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Write this accumuator in a functional style


Rustom Mody <rustompmody at gmail.com> writes:
> Yeah I know append method is supposedly O(1).

It's amortized O(1).