Sherlock and Cost Discussions | Algorithms | HackerRank
  • + 6 comments

    It's absolutely a bad idea to put 5 such small test cases, that a brute solution passes them. Even if there are hidden performance tests, then solving it by brute force will get a final score about 50% I guess, which is 75pts. In my opition, brute force shouldn't give more than 10% score. I hope that there are tests which an O(n^2) solution doesn't pass.