Valid Parentheses - Leetcode 20 - Stacks (Python)

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Master Data Structures & Algorithms for FREE at AlgoMap.io/
    Code solutions in Python, Java, C++ and JS for this can be found at my GitHub repo here: github.com/gah...
    Complete DSA Pathway Zero to Hero: • Data Structures & Algo...
    Please check my playlists for free DSA problem solutions:
    • Fundamental DSA Theory
    • Array & String Questions
    • 2 Pointers Questions
    • Sliding Window Questions
    • Binary Search Questions
    • Stack Questions
    • Linked List Questions
    • Tree Questions
    • Heap Questions
    • Recursive Backtracking...
    • Graph Questions
    • Dynamic Programming (D...
    My Data Science & ML RUclips Playlist: • Greg's Path to Become ...
    Learn Python and Data Science FASTER at mlnow.ai :)
    Support the content: / @greghogg
    Follow me on Instagram: / greghogg5
    Connect with me on LinkedIn: / greghogg
    Follow me on TikTok: / greghogg5
    Coursera Plus: imp.i384100.ne...
    My Favorite Courses:
    Data Structures & Algorithms:
    - UCalifornia San Diego DSA: imp.i384100.ne...
    - Stanford Algorithms: imp.i384100.ne...
    - Python Data Structures: imp.i384100.ne...
    - Meta Coding Interview Prep: imp.i384100.ne...
    Python:
    - UMichigan Python for Everybody: imp.i384100.ne...
    - Python Mastery from MLNOW.ai: mlnow.ai/cours...
    - Google IT Automation w/ Python: imp.i384100.ne...
    Web Dev / Full Stack:
    - Meta Front-End Developer: imp.i384100.ne...
    - IBM Full Stack Developer: imp.i384100.ne...
    - Meta Back-End Developer: imp.i384100.ne...
    - John Hopkins HTML, CSS & JS: imp.i384100.ne...
    - IBM DevOps: imp.i384100.ne...
    Cloud Development:
    - AWS Fundamentals: imp.i384100.ne...
    - GCP Cloud Engineer: imp.i384100.ne...
    - Microsoft Azure Fundamentals: imp.i384100.ne...
    Game Development:
    - Michigan State Unity Development: imp.i384100.ne...
    - UColorado C++ for Unreal Engine: www.coursera.o...
    SQL & Data Science:
    - SQL by MLNOW.ai: mlnow.ai/cours...
    - Python for Data Science by MLNOW.ai: mlnow.ai/cours...
    - Google Data Analytics: imp.i384100.ne...
    - IBM Data Science: imp.i384100.ne...
    - IBM Data Engineer: imp.i384100.ne...
    Machine Learning & AI:
    - ML Mastery at MLNOW.ai: mlnow.ai/cours...
    - ML w/ Andrew Ng: www.coursera.o...
    - Deep Learning w/ Andrew Ng: imp.i384100.ne...

Комментарии • 14

  • @GregHogg
    @GregHogg  2 месяца назад

    Master Data Structures & Algorithms For FREE at AlgoMap.io!

  • @nexolec109
    @nexolec109 Месяц назад +2

    i have a severe skill issue, my solution took 90 lines of code XD.
    thanks for the great explanation

    • @GregHogg
      @GregHogg  Месяц назад +1

      That's really impressive honestly 🤣

  • @anirbandas12
    @anirbandas12 7 месяцев назад +3

    How to do it without stack?

  • @jamesholland6140
    @jamesholland6140 29 дней назад

    Dude the way you explain is really something!!!

  • @chandlerkenworthy3185
    @chandlerkenworthy3185 Месяц назад

    I would note that you can add at the top a base case of if (len(s) % 2 != 0): return False

  • @AryanShetty-d6b
    @AryanShetty-d6b 2 месяца назад

    its amzing to follow along and to understand how to actully solve it thankyou for that! but can u give me an advice on how can i myself think of solution and implement in code because no way i would have apprached the way do to a solution so can u give an advice on logic building or apporaching? thankyou

    • @GregHogg
      @GregHogg  2 месяца назад +2

      If you watch enough of these solutions and practice it yourself, that gives the highest likelihood you'll be able to solve a new one :)

  • @julieirwin3288
    @julieirwin3288 6 месяцев назад

    Excellent explanations! Thank you!

    • @GregHogg
      @GregHogg  5 месяцев назад

      You're very welcome, sorry for the slow response!

  • @ashraf_isb
    @ashraf_isb 6 месяцев назад

    thank you man

  • @FaberLSH
    @FaberLSH 2 месяца назад

    Thanks!