Hello, you need to remake this function, so that instead of a subsequence of char, it checks the subsequence of int:
int check_subsequence (char a[], char b[]) { int c, d; c = d = 0; while (a[c] != '\0') { while ((a[c] != b[d]) && b[d] != '\0') { d++; } if (b[d] == '\0') break; d++; c++; } if (a[c] == '\0') return 1; else return 0; } The input data to the function:
bool check_subsequence(int *A, int *B, int n, int m)//n- длина A, m - длина B