Maximize a sum using counts of greater values.
Unlock detailed company stats for this questionUpgrade
Given two lists a and b, count how many b[j] > a[i] and return the maximum sum, without rearranging the values of a.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
