Giving TLE. What’s the error?
Balife greedy algo
there were some mistakes in the for loop which is at the end . here is your corrected code
Giving TLE. What’s the error?
there were some mistakes in the for loop which is at the end . here is your corrected code