• Custom User Avatar

    Description changed, thanks ;-)

  • Custom User Avatar

    I had the same problem understanding it, I would add an example, something like "note that [-1000, 1, 2, 3, 4] should output 10 and not 15, because the sequences [1, 2, 3] and [2, 3, 4] belong to the longer sequence [1, 2, 3, 4]", btw nice kata

  • Custom User Avatar

    The numbers of consecutive identical step should be considered as a whole
    Should I add this to the description? Or any other words to explain it?

  • Custom User Avatar

    Prompt is ambiguous, take for instance the input [3,4,5,6,7]. On one reading of the prompt this array contains one sequence that includes each number once i.e. [3,4,5,6,7]. On another reading this array contains six sequences that fit the requirements, [3,4,5], [4,5,6], [5,6,7], [3,4,5,6], [4,5,6,7], and [3,4,5,6,7]. A method that solves for the first version of the prompt will get the same answer as a method that solves for the second version of the prompt only when the input contains no sequences longer than 3.