Skip to content

Commit 0182bca

Browse files
authored
style: remove listIn and listOut (#1669)
1 parent 79b93d3 commit 0182bca

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Data-Structures/Queue/QueueUsing2Stacks.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ class Queue {
2929
return top
3030
}
3131
}
32-
33-
// display elements of the inputstack
34-
listIn(output = (value) => console.log(value)) {
35-
let i = 0
36-
while (i < this.inputStack.length) {
37-
output(this.inputStack[i])
38-
i++
39-
}
40-
}
41-
42-
// display element of the outputstack
43-
listOut(output = (value) => console.log(value)) {
44-
let i = 0
45-
while (i < this.outputStack.length) {
46-
output(this.outputStack[i])
47-
i++
48-
}
49-
}
5032
}
5133

5234
export { Queue }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy