Difference between revisions of "CSC212 Final Exam 2014"
Line 39: | Line 39: | ||
* What is the time complexity of this group of nested loops? | * What is the time complexity of this group of nested loops? | ||
<br /> | <br /> | ||
− | <source lang="java"> | + | :::<source lang="java"> |
for ( int i=0; i<N; i++ ) | for ( int i=0; i<N; i++ ) | ||
for ( int j=i; j<N; j++ ) | for ( int j=i; j<N; j++ ) |