Skip to content
3 marksDifficulty: Medium

State the time complexity of the following and justify it: for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) sum++;

Original Khojo Papers practice question — not from a past board paper.

Practise this chapter

Answer

Related questions

From the same topic and chapter, at a similar level.

Related questions