Sorting Algorithms, Datastrucutre, Algorithms, Leetcode, Leetcode Medium.
number, exp is passed. // exp is 10^i where i is the current digit number for (int exp = 1; max / exp > 0; exp *= 10) { countingSort(arr, exp); } } public static void main(String[] args) { int[] arr = {100, 1, 101, 111, 59, 89, 97}; radixSort(arr); System.out.println("Sorted array:"); for (int j :