We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Kotlin solution.
I find the max value (the farthest position of the house) of the x array first. Then I use that value to minimize the memory usage of the array created for counting sorting the x array. The result array from the counting sort will be used to determine the minimum number of transmitter needed.
Hackerland Radio Transmitters
You are viewing a single comment's thread. Return to all comments →
Kotlin solution. I find the max value (the farthest position of the house) of the x array first. Then I use that value to minimize the memory usage of the array created for counting sorting the x array. The result array from the counting sort will be used to determine the minimum number of transmitter needed.