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.
Regarding some test case after the submission, the official answer is 3 but I found the longest subarray shall be [24,25,26,27] or [56,55,55,54] or [99,98,97,96] with 4 numbers. The official answer apparently wrong. What is going on?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →
Regarding some test case after the submission, the official answer is 3 but I found the longest subarray shall be [24,25,26,27] or [56,55,55,54] or [99,98,97,96] with 4 numbers. The official answer apparently wrong. What is going on?