Clinic #07 - Valid Parentheses
Pattern: Stack (LIFO - “sabse haal ki cheez”) · LC 20

Ye board ek hi sawaal dikhata hai: jab brackets ek doosre ke andar nested hon, abhi is pal sabse haal mein kaunsa khula bracket apne jode (partner) ka intezaar kar raha hai. Push/pop andar se kaise kaam karte hain, wo Foundations #06 - Stacks & Queues (Hinglish) aur Linked Lists, Stacks & Queues (English) mein hai; yahan sirf ye ek problem.
Before you start. Bas itna pata hona chahiye ki push kisi cheez ko dher ke upar rakh deta hai aur pop sabse upar wali cheez ko wapas utha leta hai - Foundations #06 - Stacks & Queues ne ye dono operations andar se dikha diye the. Yahan sirf itna dekhna hai ki yehi do operations, aur kuch nahi, is interview problem ko solve kar dete hain.