Smartmind
.global
What is the time complexity of the following algorithm? ``` for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { // Do something } } ```
O(log n)
O(n^2)
O(n)
O(1)
Data Structures and Algorithms Exercises are loading ...