csgeek
3 years ago1,000+ Views
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/
1 Like
2 Share
2 comments
Would it be n^2 + n?
3 years ago·Reply
@TechAtHeart, you are technically right, though you should simplify and keep it at O(n^2)
3 years ago·Reply
1
2
2