• + 1 comment

    One of the Test Cases is: DUDDDUUDUU

    Which clearly has only 1 valley but the expected out is 2. Is this mistake or am I missing something?