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.
One question. Case 9 fails for me. I know I must be overlooking something fairly obvious. The input for case 9 is just a bunch of spaces. The output for it should be 0, but I get 1.
I tried setting the string length check (after trim()) for 0 as well as 400000, but it doesnt seem to work. Any inputs on what might have gone wrong ?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java String Tokens
You are viewing a single comment's thread. Return to all comments →
Thanks ! This helped me out a lot !
One question. Case 9 fails for me. I know I must be overlooking something fairly obvious. The input for case 9 is just a bunch of spaces. The output for it should be 0, but I get 1.
I tried setting the string length check (after trim()) for 0 as well as 400000, but it doesnt seem to work. Any inputs on what might have gone wrong ?