Skip to content
Prev Previous commit
Next Next commit
chore: revert the unrelated changes of the PR
  • Loading branch information
taekim-dev committed Jun 10, 2024
commit d13cccd19725e13af9506443f1e0a9de5d5444fc
4 changes: 2 additions & 2 deletions Data-Structures/Queue/QueueUsing2Stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Queue {
}

// display elements of the inputstack
listInput(output = (value) => console.log(value)) {
listIn(output = (value) => console.log(value)) {
let i = 0
while (i < this.inputStack.length) {
output(this.inputStack[i])
Expand All @@ -40,7 +40,7 @@ class Queue {
}

// display element of the outputstack
listOutput(output = (value) => console.log(value)) {
listOut(output = (value) => console.log(value)) {
let i = 0
while (i < this.outputStack.length) {
output(this.outputStack[i])
Expand Down