You are viewing a single comment's thread. Return to all comments →
Ah, if all the words are the same in the input this is O(n^2) because count() will iterate through the entire set n times.
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays
You are viewing a single comment's thread. Return to all comments →
Ah, if all the words are the same in the input this is O(n^2) because count() will iterate through the entire set n times.