Skip to content

Commit b82c7f8

Browse files
add a comment for 232
1 parent 5919f5e commit b82c7f8

File tree

1 file changed

+3
-0
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+3
-0
lines changed

src/main/java/com/fishercoder/solutions/_232.java

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
public class _232 {
66

77
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+
*/
811
class MyQueue {
912

1013
Stack<Integer> input = new Stack();

0 commit comments

Comments
 (0)