문제

I need to find a method to sort an array in $O(m+n)$ time complexity. I understand it should be a variation on Radix sort, however I am not familiar with it or its implementation...

Input: an array $A$ of length $n$, containing values from $-m$ to $m$

Output: a sorted array $A$

Any suggestions will be appreciated, thanks!

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 cs.stackexchange
scroll top