LeetCode 1541. Minimum Insertions to Balance a Parentheses String - Interview Prep Ep 88
Vložit
- čas přidán 3. 10. 2020
- ⭐ Shop on Amazon to support me: www.amazon.com/?tag=fishercod...
⭐ NordVPN to protect your online privacy: go.nordvpn.net/aff_c?offer_id...
⭐ NordPass to help manage all of your passwords: go.nordpass.io/aff_c?offer_id...
Problem link: leetcode.com/problems/minimum...
⭐ Support my channel and connect with me:
/ @fishercoder
Algorithm explained:
We can use a Stack to keep track of the characters that we have iterated over; in the end, we'll check if the stack is empty or not before we return the final result.
// TOOLS THAT I USE:
○ Memory Foam Set Keyboard Wrist Rest Pad - amzn.to/3cOGOAj
○ Electric Height Adjustable Standing Desk - amzn.to/2S9YexJ
○ Apple Magic Keyboard (Wireless, Rechargable) - amzn.to/36gy5FJ
○ Apple Magic Trackpad 2 (Wireless, Rechargable) - amzn.to/36ltimu
○ Apple MacBook Pro - amzn.to/30iSvKE
○ All-In One Printer - amzn.to/34etmSi
○ Apple AirPods Pro - amzn.to/2GpVYQf
○ My new favorite Apple Watch - amzn.to/2EIIUFd
// MY FAVORITE BOOKS:
○ Introduction to Algorithms - amzn.to/36hxHXD
○ Designing Data-Intensive Applications - amzn.to/2S7snOg
○ Head First Java - amzn.to/2ScLDKa
○ Design Patterns - amzn.to/2SaGeU2
Follow me on Github for more LeetCode solutions: github.com/fishercoder1534/Le...
Support me on Patreon: / fishercoder
My ENTIRE Programming Equipment and Computer Science Bookshelf:
www.amazon.com/shop/fishercoder
And make sure you subscribe to my channel before you leave!
Your comments/thoughts/questions/advice will be greatly appreciated!
#softwareengineering #leetcode #algorithms #coding #interview #SDE #SWE #SiliconValley #programming #datastructures
hi, please continue making leetcode videos daily on a regular basis, u are doing a great job
I will try my best, thanks for your kind words! Cheers!
Thanks for the so smooth and calm explanation.. each step get fitted on my mind..
Glad it was helpful!
recently got asked with this problem i used a similar approach (almost identical)
which company?
Great video . One of the best explanations I have seen .
Glad it was helpful! :)
Great explanation Thank you
Glad it was helpful!
Thank YOU
too good
Glad it was helpful!
please make a video on Minimum Insertion Steps to Make a String Palindrome -1312 th problem on leet code