j = 0;
for (int i = 0; i < arr.length; i++) {
if (arr[i] != result[j])
{push;}
else
{pop;}
}
if (!stack.empty())
{
return false;
}
esle
{
return true;
}
j = 0;
for (int i = 0; i < arr.length; i++) {
if (arr[i] != result[j])
{push;}
else
{pop;}
}
if (!stack.empty())
{
return false;
}
esle
{
return true;
}