Nested Cmpl Solved! Sooo clear

programming
Tags: #<Tag:0x00007f2428866ef8>

#1

Very clearly, the first set of nested loops is O(N^2) and the second loop is O(N).
Therefore it is O(max(N^2,N)) which is O(N^2).