We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Picking Numbers
- Discussions
Picking Numbers
Picking Numbers
Sort by
recency
|
195 Discussions
|
Please Login in order to post a comment
The test cases miss a basic case of '1 2 2 3 3 5'. A lot of answers submitted here give wrong answer for this case (3 instaed of 4).
Should be subsequence how about fixing it hackerrank
It should be a sequence not a subarray to be more clear, as it is counting non-contiguous elements as valid.
Python
The question should read: "give the length of the longest chain of numbers that meet the criterion that you can make with the numbers in the array".