retagged by
354 views

2 Answers

Best answer
0 votes
0 votes

Outer "i" loop is running 100 times which is constant

For each of the value of "i" inner "j" loop runs n times

"k" loop runs "j" times which inetern runs n times

Therefore the total complexity is O(n^2)

edited by

Related questions

1 votes
1 votes
1 answer
2
0 votes
0 votes
3 answers
3
Sandeep Suri asked Sep 5, 2016
494 views
3 votes
3 votes
2 answers
4
papesh asked Oct 11, 2016
576 views