Help me to calculate time complexity

Правка en1, от M_A_Noman, 2023-06-16 23:32:27

Please help to calculate the time complexity of the following code

Code

Can this code can pass the for large value of both n and m which can be in the rang of 1 - 1e9

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский M_A_Noman 2023-06-17 14:00:03 40 Tiny change: ' - 1e9 `` ' -> ' - 1e9 `` \nThe range of the test case is ``10^4``'
en2 Английский M_A_Noman 2023-06-17 06:46:18 18 Tiny change: 'this code can pass the for large' -> 'this code pass in 1 second for large'
en1 Английский M_A_Noman 2023-06-16 23:32:27 1738 Initial revision (published)