Checking parentheses balance using Stack!

()
()()()
((()))
{()}
[[[{{((()))}}]]]
[][]()(){()}{}
()))
)))(((
{()()
[[[}}}
{}{
Adding to the stack
Deleting from the stack

--

--

--

I’m a computer science and engineering graduate. I’m passionate about learning and spread what I learn. Besides I like cooking and photography!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

I detest the Python static-typing annotation schemes

Yeccch

Create A Space Shooter Game | Egretia Engine Tutorial For Beginners Part 2

https://medium.com/@graeme_robinson89/web-design-for-industry-ae2-pattern-library-83b1e421cccd

An introduction to Cloud-Native model

CS373 Spring 2022: David Trakhtengerts — Week 3

Automation Testing Mindset

Regression Testing in Mobile Development

DOS File Path Magic Tricks

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shahad Mahmud

Shahad Mahmud

I’m a computer science and engineering graduate. I’m passionate about learning and spread what I learn. Besides I like cooking and photography!

More from Medium

Leetcode: 1305. All Elements in Two Binary Search Trees

Linked Lists — What are they?

Data Structure Problem | Maximum sum of contiguous subarray

Oracle MySQL Heatwave — You need know now!