Grokking the Coding Interview: Patterns for Coding Questions
0% completed
Problem 2: Reverse a String
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 3 years ago
The reason is strings are immutable Every time we append a char to a string it is going to create a new copy of string costing O(n) in each iteration
Show 3 replies
Reading Progress
0%