338
правок
Изменения
м
→pop
=== pop ===
pop()
if (rightStack.empty()) then then if (!leftStack.empty()) then while (!leftStack.empty()) do rightStack.push(leftStack.pop)
return rightStack.pop()