Why is my Solution giving TLE in subtask 2?

Revision en1, by newbie_in_world, 2019-02-11 04:56:59

Problem:-Minion Chef and Bananas

My Solution:-Ideone

My solution's time complexity is O(n*log(max element in arr))

Why is this solution Giving TLE in subtask2?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English newbie_in_world 2019-02-11 04:56:59 288 Initial revision (published)