You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the correct code would be "values[indexOfTop(stackNum) + 1] = value;" because the existing code is overriding the top element instead of adding a new element in the top of the stack.
The text was updated successfully, but these errors were encountered:
CtCI-6th-Edition/Java/Ch 03. Stacks and Queues/Q3_01_Three_in_One/FixedMultiStack.java
Line 28 in 59018cf
I think the correct code would be "values[indexOfTop(stackNum) + 1] = value;" because the existing code is overriding the top element instead of adding a new element in the top of the stack.
The text was updated successfully, but these errors were encountered: