S30 FAANMG Problem #4 | Create Queue using Stacks#2446
S30 FAANMG Problem #4 | Create Queue using Stacks#2446sandy7907 wants to merge 1 commit intosuper30admin:masterfrom
Conversation
Overall, the solution is good except for the missing brace. |
|
Strengths:
Areas for improvement:
Suggested improvement for public int pop() {
peek(); // Ensure outStack has the front element
return outStack.pop();
}This way, the transfer logic is only in |
No description provided.