We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbfdd8e commit d13cccdCopy full SHA for d13cccd
Data-Structures/Queue/QueueUsing2Stacks.js
@@ -31,7 +31,7 @@ class Queue {
31
}
32
33
// display elements of the inputstack
34
- listInput(output = (value) => console.log(value)) {
+ listIn(output = (value) => console.log(value)) {
35
let i = 0
36
while (i < this.inputStack.length) {
37
output(this.inputStack[i])
@@ -40,7 +40,7 @@ class Queue {
40
41
42
// display element of the outputstack
43
- listOutput(output = (value) => console.log(value)) {
+ listOut(output = (value) => console.log(value)) {
44
45
while (i < this.outputStack.length) {
46
output(this.outputStack[i])
0 commit comments