At the beginning I thought it is a question about DF that the sequence can be"+ - + - + -" or "- + - + - +" .But then I found the question can convert to a greedy question. When the sequence starts as this pattern like "+ - + - + -",that means the best pattern is this.
Posts made by voguke
RE: Very Simple Java Solution with detail explanation
RE: Non-negative Integers without Consecutive Ones
the paragraph above the first video that " 1000000−>1111111, 1000000−>1001111, 1000000−>1001111" is wrong ,you give the same numbers @vinod23