LeetCode 836: Rectangle Overlap - Interview Prep Ep 44

⭐ 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...
LeetCode 836. Rectangle Overlap: leetcode.com/problems/rectang...
⭐ Support my channel and connect with me:
/ @fishercoder
Solution explained:
1. we could try to first figure out how two segments could overlap in a one dimensional world;
2. then based on the conditions we get from #1, we simply extend them to a two dimensional world.
Credit to: leetcode.com/problems/rectang...
// 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 complete 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!
Your comments/thoughts/questions/advice will be greatly appreciated!
#softwareengineering #leetcode #algorithms #coding #interview #SDE #SWE #SiliconValley #programming #datastructures

Пікірлер: 9

  • @sadeghkhosravi
    @sadeghkhosravi Жыл бұрын

    Thands This is very helpful for me👍👍👍

  • @FisherCoder

    @FisherCoder

    Жыл бұрын

    Glad to hear that

  • @rajatgarg2166
    @rajatgarg21663 жыл бұрын

    Super cool. I was able to understand from your video very well

  • @FisherCoder

    @FisherCoder

    3 жыл бұрын

    Glad it helped!

  • @yasssh7835
    @yasssh78354 жыл бұрын

    Thank you !!

  • @FisherCoder

    @FisherCoder

    4 жыл бұрын

    You're welcome!

  • @guyswapnil
    @guyswapnil3 жыл бұрын

    Sir in my case it is showing error because of positive intersection

  • @edwardteach2
    @edwardteach23 жыл бұрын

    Sadly doesn't work for python, even if I copied and pasted the solution. So sad today: class Solution(object): def isRectangleOverlap(self, rec1, rec2): """ :type rec1: List[int] :type rec2: List[int] :rtype: bool """ return rec1[0] < rec2[2] and rec2[0] < rec1[2] and rec1[1] < rec2[3] and rec2[1] < rec1[3]

  • @neeraj1bh
    @neeraj1bh4 жыл бұрын

    Can you please solve these solutions in Python as very less Python explanations on KZread.