MCPcopy Create free account
hub / github.com/Jonathan-Uy/CSES-Solutions / good

Function good

String Algorithms/Required Substring.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool good(vector<char> pre, int k){
24 int SZ = (int) pre.size();
25 for(int i = 0; i < SZ-k; i++)
26 if(pre[i+k] != S[i])
27 return false;
28 return true;
29}
30
31int main(){
32 scanf("%d %s", &N, S);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected