You are viewing a single comment's thread. Return to all comments →
Good problem. My Java solution is an optimized O(n^3). The longest time it takes is 0.77s. https://www.hackerrank.com/challenges/substring-diff/submissions/code/11510387
Seems like cookies are disabled on this browser, please enable them to open this website
Substring Diff
You are viewing a single comment's thread. Return to all comments →
Good problem. My Java solution is an optimized O(n^3). The longest time it takes is 0.77s. https://www.hackerrank.com/challenges/substring-diff/submissions/code/11510387