The `put_elem` function copies the whole tuple, making the algorithm have a total complexity of $O(n * k)$ https://github.com/Poyters/stella/blob/17f6be2e0565ff96a4e1c3578da4b50c4881b4c2/lib/algorithms/countingsort.ex#L36
The$O(n * k)$
put_elemfunction copies the whole tuple, making the algorithm have a total complexity ofstella/lib/algorithms/countingsort.ex
Line 36 in 17f6be2