Skip to content

Commit cbfdd8e

Browse files
committed
fix: rename listIn to listInput and listOut to listOutput in QueueUsing2Stacks.js
1 parent cd4b591 commit cbfdd8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data-Structures/Queue/QueueUsing2Stacks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Queue {
3131
}
3232

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

4242
// display element of the outputstack
43-
listOut(output = (value) => console.log(value)) {
43+
listOutput(output = (value) => console.log(value)) {
4444
let i = 0
4545
while (i < this.outputStack.length) {
4646
output(this.outputStack[i])

0 commit comments

Comments
 (0)