Grokking the Engineering Manager Coding Interview
Vote

0% completed

​

Reverse a String (easy)

.....

.....

.....

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%


Vote for new content