Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int check_pizza(char S[], char T[])
- {
- int n = strlen(S);
- int m = strlen(T);
- int j = 0;
- for (int i = 0; i < n; ++i) {
- if (S[i] == T[j])
- ++j;
- }
- return j == m ? 1 : 0;
- }
Add Comment
Please, Sign In to add comment