What is wrong with this code - Counting Sort


My Solution

hey @LPLC0114, contarints are high in question so change the datatype to long long int and make size of array as 1000001 and size of freq array as 1000001