Better complexity of Codechef Paying Up
Problem link
I have done this problem with time complexity O( nlogn + n * m ) and space complexity O( 2 * m ). How can i improve this?
No answers. ._.
No answers. ._.