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

    alternative postitions in array should be 1 then the sum will be maximum

    eg: 100 1 100 1 100