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

How to build a serverless web crawler

Love and Coding

Reflections on Phase-0

To Track or Not to Track

CS373 Spring 2022: David Trakhtengerts — Week 6

Azure Kubernetes Service (AKS) with Secrets Store CSI and Azure Key Vault (AKV) Provider

Professor.finance Airdrop Is Now Live, ($25000 WORTH) $Robber NFTs Giveaway

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

GREEDY APPROACH vs DYNAMIC PROGRAMMING

Connect Ropes(code and explanation)

Formulae for B-tree and B⁺-tree in DB

Two Sum, Three Sum, Four Sum and… K Sum?