Y
Hacker News
new
|
ask
|
show
|
jobs
by
dmvaldman
5224 days ago
That's N*(N+1)/2 steps, or order N^2. Best to visualize as the number of entries on the upper triangle of an NxN matrix.