Nice Example … visit more
Shivam Kumar - Dec 5, 2015
Nice Example … visit more Java examples
Thanks Java Proficiency. But the problem that you have provided is not same as above problem. Regards.
Shivam Kumar - Dec 5, 2015
Nice Example … visit more Java examples
Thanks Java Proficiency. But the problem that you have provided is not same as above problem. Regards.
We should use counting sort.
There are only 256 key value, so aux array will have only 256 values, and in O(n) time and 2 passes we will be able to sort in efficient way.