2 years ago
csgeek
in English · 2,950 Views
likes 1clips 2comments 2
Programming Trivia: What Complexity of this algorithm?
Some practice for all of us. Follow the images for answers. Refresh your Big-O knowledge here: http://www.vingle.net/posts/509676-O-Notation Source: http://www.sitepoint.com/time-complexity-algorithms/
csgeek clipped in 1 collections
2 comments
Would it be n^2 + n?
2 years ago·Reply
10
@TechAtHeart, you are technically right, though you should simplify and keep it at O(n^2)
2 years ago·Reply