Getting TLE in Python where same logic get passed in C++

Правка en2, от i_m_Shakil, 2020-04-28 11:24:13

Problem Link: 231C - To Add or Not to Add

These are my two submissions:

Both of these solutions are written using the same logic & run time is O(n log n). Why is Python getting TLE?

N.B: I'm new in python.

Thanks in Advance.

Теги #binary search, #python 3, #tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский i_m_Shakil 2020-04-28 11:24:13 222 Tiny change: ':231C]**\n****\nThese ar' -> ':231C]**\n\nThese ar' (published)
en1 Английский i_m_Shakil 2020-04-28 11:11:27 182 Initial revision (saved to drafts)