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.
Thanks for that i = 0 :)
Had basically the same code, but I couldn't think of an easy solution to go back to the beginning of the string again after deleting a pair of letters, even if it was that easy...
I used StringBuffer instead of String. Isn't it more efficient, cause less objects are created? I'm really not sure about that, some feedback would be appreciated. Here my code:
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Thanks for that i = 0 :) Had basically the same code, but I couldn't think of an easy solution to go back to the beginning of the string again after deleting a pair of letters, even if it was that easy...
I used StringBuffer instead of String. Isn't it more efficient, cause less objects are created? I'm really not sure about that, some feedback would be appreciated. Here my code: