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



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?