3 ms·
The size of the number (result) is (N(N + 1))/2, the computation of the algorithm is constant. I've never heard anyone discuss the result of the algorithm using
by gregors 13y ago
The size of the number (result) is (N(N + 1))/2, the computation of the algorithm is constant. I've never heard anyone discuss the result of the algorithm using Big O.