count sort time complexity code example Example: count is inplace or not counting sort is not an in-place algorithm