Devtools Tech Logo
0
0
0

What is the time complexity of the following code snippet?

Option 1
O(n)
Option 2
O(n^2)
Option 3
O(nlogn)
Option 4
O(2^n)