Content-Length: 288848 | pFad | http://github.com/TheAlgorithms/JavaScript/commit/0182bcacd0573094452e2130a18e4b947df91e67
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
listIn
listOut
1 parent 79b93d3 commit 0182bcaCopy full SHA for 0182bca
Data-Structures/Queue/QueueUsing2Stacks.js
@@ -29,24 +29,6 @@ class Queue {
29
return top
30
}
31
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
45
- while (i < this.outputStack.length) {
46
- output(this.outputStack[i])
47
48
49
50
51
52
export { Queue }
Fetched URL: http://github.com/TheAlgorithms/JavaScript/commit/0182bcacd0573094452e2130a18e4b947df91e67
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments