We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here's my solution in typescript.
Strings are immutable in JS and I don't think creating an array is efficient using String.prototype.split('') and then again converting it into a string using Array.prototype.join([ ])
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Here's my solution in typescript. Strings are immutable in JS and I don't think creating an array is efficient using String.prototype.split('') and then again converting it into a string using Array.prototype.join([ ])