We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9e871c commit 2eb9ea4Copy full SHA for 2eb9ea4
Queues/Implementation/usingStack.cpp
@@ -14,6 +14,7 @@ int i=0;
14
// 1. Push everything from stack1 to stack2
15
// 2. insert x or num to stack 1
16
// 3. Again push every number from stack2 to stack1
17
+ // 4. TC: O(N) SC: O(2N)
18
int x;
19
cin>>x;
20
while(!st1.empty()){
0 commit comments