⭐ Shop on Amazon to support me: [ Ссылка ]
⭐ NordVPN to protect your online privacy: [ Ссылка ]
⭐ NordPass to help manage all of your passwords: [ Ссылка ]
Amazon Coding Interview Question: Symmetric Tree (LeetCode #101)
Coding Interview Gist:
Without Preparation 😎 Before Interview = Ready To Be Grilled 😭 During Interview
This is one of Amazon's most commonly asked questions according to LeetCode. It's also seen in interviews for these companies: Uber/Microsoft/Twitter per LeetCode.
Problem link: [ Ссылка ]
Solution explained:
A simple intuition flows out to a recursive solution: we just check if the two given nodes at any structurally equivalent positions are equal, if not, return false.
Looking at the given API signature, it's not possible to realize this, so we'll just write a helper function ourselves to do so.
⭐ Support my channel and connect with me:
[ Ссылка ]
// TOOLS THAT I USE:
○ Memory Foam Set Keyboard Wrist Rest Pad - [ Ссылка ]
○ Electric Height Adjustable Standing Desk - [ Ссылка ]
○ Apple Magic Keyboard (Wireless, Rechargable) - [ Ссылка ]
○ Apple Magic Trackpad 2 (Wireless, Rechargable) - [ Ссылка ]
○ Apple MacBook Pro - [ Ссылка ]
○ All-In One Printer - [ Ссылка ]
○ Apple AirPods Pro - [ Ссылка ]
○ My new favorite Apple Watch - [ Ссылка ]
// MY FAVORITE BOOKS:
○ Introduction to Algorithms - [ Ссылка ]
○ Designing Data-Intensive Applications - [ Ссылка ]
○ Head First Java - [ Ссылка ]
○ Design Patterns - [ Ссылка ]
Follow me on Github for complete LeetCode solutions: [ Ссылка ]
Support me on Patreon: [ Ссылка ]
My ENTIRE Programming Equipment and Computer Science Bookshelf:
[ Ссылка ]
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
Ещё видео!