Goodland Electricity

  • + 1 comment

    Hey, someone can explain why sample test case 2's answer is "3"?

    10 3 0 1 0 0 0 1 1 1 1 1

    The range is 3 so it answer seems 2.

    0 1 0 0| 0 1 1 1| 1 1