Sherlock and Cost Discussions | Algorithms | HackerRank
  • + 1 comment

    The only comment I have is that elements of B may not be integers, as it isn't specified as such in the problem statement.