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.
Im not sure of this solution. This will not be working with this input:
51213332
The output should be 2 but will be 3 because it will count last digit of the series 3. This solution does not consider what if solution will be shorter than a month digit.
Sure, this will pass all validators but still... :).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Subarray Division
You are viewing a single comment's thread. Return to all comments →
Im not sure of this solution. This will not be working with this input:
The output should be
2
but will be3
because it will count last digit of the series3
. This solution does not consider what if solution will be shorter than a month digit.Sure, this will pass all validators but still... :).