Help me to calculate time complexity

Revision en2, by M_A_Noman, 2023-06-17 06:46:18

Please help to calculate the time complexity of the following code

Code

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English M_A_Noman 2023-06-17 14:00:03 40 Tiny change: ' - 1e9 `` ' -> ' - 1e9 `` \nThe range of the test case is ``10^4``'
en2 English 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 English M_A_Noman 2023-06-16 23:32:27 1738 Initial revision (published)