A reader asked us the following question:
Here, arr[maxId] is stored as the multiplier. Whereas, arr[i] is stored as the remainder. For example in the array, [1, 2, 3, 4, 5, 6, 7, 8, 9], the maxElem is 10" - how is the max element 10 here? Isn’t it 9?