What is the time complexity of the following code snippet – Assume x is a global variable and “statement” takes O(n) time?
solved What is the time complexity of the following code snippet – Assume x is a global variable and “statement” takes O(n) time?