Vidyalelo
Data Structure · Q798

Miscellaneous on Data Structures

Programming · Data Structure · question 798

Q798

What is the time complexity of the above code used to reverse a string?

A.
O(1)
B.
O(n)
Answer
C.
O(n2)
D.
O(n3)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board