Dumb question on time complexity

Правка en1, от Dumbledore, 2016-01-05 23:07:20
for (int i = 1; i <= MAXN; i++)
     for (int j = i; j <= MAXN; j += i);


Can anybody explain to me why the time complexity for this code is O(N log N)?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Dumbledore 2016-01-05 23:07:20 214 Initial revision (published)