Skip to content

Commit

Permalink
style: remove listIn and listOut (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Jun 11, 2024
1 parent 79b93d3 commit 0182bca
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Data-Structures/Queue/QueueUsing2Stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,6 @@ class Queue {
return top
}
}

// display elements of the inputstack
listIn(output = (value) => console.log(value)) {
let i = 0
while (i < this.inputStack.length) {
output(this.inputStack[i])
i++
}
}

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

export { Queue }

0 comments on commit 0182bca

Please sign in to comment.