Index

Module 05 · DSAClinic: arrays, hashing and stacks

Clinic #07 - Valid Parentheses

Pattern: Stack (LIFO - “sabse haal ki cheez”) · LC 20

Valid Parentheses
Valid Parentheses · Open board

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.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Review DSA →

Saved in this browser, and to your account when you sign in.