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.
- All Contests
- HourRank 18
- Super Six Substrings
- Discussions
Super Six Substrings
Super Six Substrings
Sort by
recency
|
45 Discussions
|
Please Login in order to post a comment
Why not find the mod directly with 6, as opposed to 2 and 3 ?
According to the constraints , the string length will not exceed 10e5. Here is the input for test case 5: 6966606919907090609037430091834960718075082030963209339303030899600689446690866466014339933090600886
wtf!!
include
include
char s[100005]; int arr[100005][3];
int fun(int x,int m){
}
int main(){ scanf(" %s",s); int j,i=0; long long ans=0; for(j=0;j<100005;j++){ arr[j][0]=arr[j][1]=arr[j][2]=-1;} while(s[i]!='\0'){ if((int)s[i]=='0'){
https://www.hackerrank.com/contests/hourrank-18/challenges/super-six-substrings/submissions/code/1301177045
O(n) solution in python.. and I know nothing of dynamic programming
can anyone explain whats wrong with my code? public class superString {
}