In this video, I host a real mock coding interview with a former Meta software engineer using an actual question asked at Google and Meta.
🚀 JOIN MY TECH COMMUNITY: SWE LAUNCHPAD
Inside, you'll learn How to break Into tech with practical resources, job prep guidance, and real industry insights you won’t find in school.
→ https://swelaunchpad.com
✉️ TECH NEWSLETTER
Discover the latest tech trends shaping the industry, unlock career tips, and access exclusive resources to stay competitive in tech.
→ https://sajjaad.substack.com/
🗣️ INVITE ME TO SPEAK AT YOUR EVENT
→ https://forms.gle/p38f7Jqt7FjYWtYU7
🧑💻 LEARN TO CODE
Learn to code with bite-sized projects and an AI-bot to help answer your queries. I recommend you start with their python module, then check out java and javascript.
→ https://coddy.tech/ (It's FREE, but you can use the code SAJYT for 20% off of premium features!)
⬇️ MY OTHER SOCIALS:
📸 Instagram: / / sajjaad.khader
📱 TikTok: / / sajjaadkhader
🌍 My website: https://sajjaad-s-site.thinkific.com/...
TIMESTAMPS
0:00 - Intro
0:39 - Mock interview begins
1:04 - The actual Meta/Google interview question
1:36 - What makes a parenthesis string valid?
2:25 - Initial approach & intuition
3:42 - Identifying edge cases
4:08 - Why we need a stack
5:14 - Step-by-step dry run example
7:05 - Time & space complexity breakdown
8:32 - Coding the solution in JavaScript
10:54 - Why triple equals (===) matters
12:51 - Handling invalid closing parentheses
14:14 - Fixing dangling opening parentheses
16:41 - Returning the final string
18:08 - Testing edge cases
20:01 - Multiple valid outputs explained