Link to problem: Double-Helix
I/P: 6 1 4 5 8 8 8 5 2 8 9 9 9 0
accepted O/P: 45
Correct O/P: 61
Since different combinations to similar values (8 in this case) will produce different solutions, DP must be used.
Hi,
The sequences are supposed to be in strictly increasing sequence. None of these is a strictly increasing sequence. Is this test case correct?