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

    static int cost(int[] B) { int cost=0; for(int i=1;i