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.
There are for example {0110011} mods of accumulated numbers right?
then you wanna choose i and j so you have to select some elements that their difference %k is 0 then you can assure that their sum is divisible.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Consecutive Subsequences
You are viewing a single comment's thread. Return to all comments →
There are for example {0110011} mods of accumulated numbers right? then you wanna choose i and j so you have to select some elements that their difference %k is 0 then you can assure that their sum is divisible.