#include <iostream>
using namespace std; // consider removing this line in serious projects
int main() {
bool isReverse(int x[], int y[], int sze);
int _a[3] = {1,2,3};
int _b[3] = {3,2,6};
int _c = 3;
isReverse(_a, _b, _c);
}
bool isReverse(int x[], int y[], int sze){
int num = 0;
bool bng = true;
for (int i=(sze-1); i >= 0; i--){
if (x[num] == y[i]){
bng = true;
num++;}
else{
bng = false;
num++;}
}
return bng;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOyAvLyBjb25zaWRlciByZW1vdmluZyB0aGlzIGxpbmUgaW4gc2VyaW91cyBwcm9qZWN0cwoKaW50IG1haW4oKSB7CgkKYm9vbCBpc1JldmVyc2UoaW50IHhbXSwgaW50IHlbXSwgaW50IHN6ZSk7CgppbnQgX2FbM10gPSB7MSwyLDN9OwppbnQgX2JbM10gPSB7MywyLDZ9OwppbnQgX2MgPSAzOwoKaXNSZXZlcnNlKF9hLCBfYiwgX2MpOwp9Cgpib29sIGlzUmV2ZXJzZShpbnQgeFtdLCBpbnQgeVtdLCBpbnQgc3plKXsKCWludCBudW0gPSAwOwoJYm9vbCBibmcgPSB0cnVlOwoJZm9yIChpbnQgaT0oc3plLTEpOyBpID49IDA7IGktLSl7CgkJaWYgKHhbbnVtXSA9PSB5W2ldKXsKCQkJYm5nID0gdHJ1ZTsKCQkJbnVtKys7fQoJCWVsc2V7IAoJCQlibmcgPSBmYWxzZTsKCQkJbnVtKys7fQoJCQkKCX0KCXJldHVybiBibmc7Cn0=