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
|
199 Discussions
|
Please Login in order to post a comment
Question is worded poorly (says subarray, when it means subset), and the example works either way, so there's no way of catching the misunderstanding without looking at the sample test cases
Hackerrank should clarify their question. Subarray is the wrong word to use. It should be subsequence
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).