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

    Thank you so much for clarifying. I think the biggest mistake they made in the wording of the problem is that they used a VERY special case in which A == B! No?

    It seems to me that [10, 1, 10, 1, 10] should be the array to calculate the answer (A), not the input (B).