Class to efficiently manage two stacks within a single array. This implementation ensures optimal use of space by allocating opposite ends of the array to each stack and carefully managing their growth towards each other to prevent overlap and ensure maximum utilization of the allocated space.
Stack Operations:
Includes push1, push2 for adding elements to each stack, and pop1, pop2 for removing elements.