time limit exceeded

Правка en2, от AbhishekAg, 2020-06-28 12:35:51

Getting TLE on test case 8 for this problem. I read the editorial which had O(n) complexity. My soln has a complexity of O(n *log n) but as n has an upper bound of 2e5 it should pass right (if it is correct)?

Теги time complexity, time limit exceeded, #implementation

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский AbhishekAg 2020-06-28 12:35:51 45
en1 Английский AbhishekAg 2020-06-28 11:48:03 343 Initial revision (published)