✔ 最佳答案
The problem must be solved when more than one stack are implemented –
overflow. Since the size of each stack is unpredictable, overflow occurs when one of
the stacks is full and new items are needed to push in. The solution for this is to
reallocate memory and give more empty spaces to the overflowed stack. This action
requires the move of items in the memory properly and extra cost is made in addition
to the original push operations. Therefore, the objective of this system is to minimize
the number of item movements in the memory.