algorithm-archive icon indicating copy to clipboard operation
algorithm-archive copied to clipboard

Min max stack example

Open Iinguistics opened this issue 5 years ago • 2 comments

Added a stack class example in js & added imported the code into the md file.

Iinguistics avatar Oct 14 '20 23:10 Iinguistics

I do intend to eventually add code to this chapter, so this PR is a good idea in principle; however, I don't know enough JS to say whether this is a good, fundamental implementation of a stack or queue in that language.

right now, my understanding is that this code goes a bit futher to allow for outputing the maximum or minimum element in the stack, which is useful, but not what I was thinking of for this chapter.

leios avatar Jan 02 '21 21:01 leios

[lang: javascript]

ntindle avatar Aug 28 '21 04:08 ntindle