Back to course home
0% completed
Vote For New Content
Variable reversedString constant space?
johannes.welsch
Jan 5, 2025
The solutions says that the variable reversedString has a space complexity of O(1). But if we have a string of a million characters, it will create an additional string of a million characters, which means it's O(N)?
0
0
Comments
Comments
On this page