• Tutorials
  • Courses
  • Tracks

String | Data Structure Quiz for Beginners | Question 16

Last Updated :
Discuss
Comments

What is the time complexity to reverse a string?

O(n^2)

O(1)

O(log n)

O(n)

Share your thoughts in the comments