Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: remove listIn and listOut (TheAlgorithms#1669)
  • Loading branch information
vil02 authored Jun 11, 2024
commit 0182bcacd0573094452e2130a18e4b947df91e67
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 }