We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5919f5e commit b82c7f8Copy full SHA for b82c7f8
src/main/java/com/fishercoder/solutions/_232.java
@@ -5,6 +5,9 @@
5
public class _232 {
6
7
public static class Solution1 {
8
+ /**
9
+ * This is amortized O(1) time for each operation, explanation: https://leetcode.com/problems/implement-queue-using-stacks/solution/
10
+ */
11
class MyQueue {
12
13
Stack<Integer> input = new Stack();
0 commit comments