trekhleb / javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
MIT License
185.03k stars 29.84k forks source link

Solving Algorithm Problems with Stack #1077

Open obafemitayor opened 9 months ago

obafemitayor commented 9 months ago

First off, great job with this repository as I think it would be very useful for DSA in js. I added a beginner algorithm problem that can be solved using stack. I feel it is a very good example of how a problem can be solved using the stack data structure and it could serve as a future guide on how similar problems can be solved.