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.
But I believe you can still optimize it a little bit.
How about using char array instead of charAt() function?
Because every call to charAt() method contains internall check for ArrayOutOfBoundException.
Java Anagrams
You are viewing a single comment's thread. Return to all comments →
Great explanation!
But I believe you can still optimize it a little bit. How about using char array instead of charAt() function? Because every call to charAt() method contains internall check for ArrayOutOfBoundException.
My vision: