newbie_in_world's blog

By newbie_in_world, history, 5 days ago, In English,

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?

 
 
 
 
  • Vote: I like it  
  • -1
  • Vote: I do not like it  

»
4 days ago, # |
  Vote: I like it 0 Vote: I do not like it

Did you try random tests?