LeetCode 235. Lowest Common Ancestor of a Binary Search Tree - Interview Prep Ep 137

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • ⭐ Shop on Amazon to support me: www.amazon.com...
    ⭐ NordVPN to protect your online privacy: go.nordvpn.net...
    ⭐ NordPass to help manage all of your passwords: go.nordpass.io...
    Problem link on LeetCode 235. Lowest Common Ancestor of a Binary Search Tree: leetcode.com/p...
    Solution on Github: github.com/fis...
    ⭐ Become a member:
    / @fishercoder
    // 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
    My ENTIRE Programming Equipment and Computer Science Bookshelf:
    www.amazon.com...
    Follow me on Github for more LeetCode solutions: github.com/fis....
    Support me on Patreon: / fishercoder
    And make sure you subscribe to my channel!
    Your comments/thoughts/questions/advice will be greatly appreciated!
    #softwareengineering #leetcode #algorithms #coding #interview #SDE #SWE #SiliconValley #programming #datastructures

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

  • @LuisAya83
    @LuisAya83 Год назад +6

    In line 13 you put root == q twice, should be root == q || root == p ? 🤨

    • @tonyhiga8877
      @tonyhiga8877 Год назад +1

      Yeah I think so

    • @FisherCoder
      @FisherCoder  Год назад

      Great catch! You are absolutely right, that was a surely typo, ^ ^.