Andy - MATLAB Cody - MATLAB Central

Andy

27772
Rank
2
Badges
169
Score
1 – 18 of 18

Andy submitted a Comment to Problem 672. Longest run of consecutive numbers

The requirements for this problem are unclear and / or the tests are poor. If there are 2 equal lengths of the same number, e.g. [ 2 2 2 1 1 2 2 2 3 4 5], the expected result from the test is [2 2]. Why not just [2]? Or if the input is [ 3 3 3 2 2 2 1 5 4] and the routine returns [2 3], why is this wrong? The test expects output of [3 2]...

on 20 Aug 2024

Andy received Solver badge for Solution 14287260

on 20 Aug 2024

1 – 18 of 18
Go to top of page