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.
If the numbers in the string are consecutive, they will be stored together ({1, 11, 1, 111, ...}), so we only need to find the length of the longest value in the array.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
If the numbers in the string are consecutive, they will be stored together ({1, 11, 1, 111, ...}), so we only need to find the length of the longest value in the array.