Is this Code Ok to get saved from TLE and What will be the time Complexity of this???

Правка en1, от bideshbanerjee444, 2022-02-10 09:18:46

for(int i = 2; i <= int(1e6); i++){ for(int j = 0; j <= int(1e6); j += i){ //Here anything which takes O(1) time.....
} }

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский bideshbanerjee444 2022-02-10 09:20:18 149
en1 Английский bideshbanerjee444 2022-02-10 09:18:46 227 Initial revision (published)