You are viewing a single comment's thread. Return to all comments →
Looks great guys. Can you explain why substituting the last line with
return (int)Arrays.stream(freq).filter(f-> f!=0).count();
is not working for most of the test cases?
Seems like cookies are disabled on this browser, please enable them to open this website
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →
Looks great guys. Can you explain why substituting the last line with
is not working for most of the test cases?