Maximum Difference Between Node and Ancestor | Leet code 1026 | Theory explained + Python code

Sai Anish Malla November 9, 2020
Video Thumbnail
Sai Anish Malla Logo

Sai Anish Malla

View Channel

About

I upload daily videos solving interview questions along with weekly projects and tutorials, specifically in Python.

Video Description

This video is a solution to Leet code 1026, Maximum Difference Between Node and Ancestor. I explain the question, go over how the logic / theory behind solving the question and finally solve it using Python code. Comment below if you have a better solution to this problem! Let me know if you have any feedback and don't forget to subscribe for more videos! Code: https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/discuss/929787/Python-3-Solution-Explained-(video-%2B-code) Time stamps: 0:00 Question 3:26 Solution Explained 10:01 Python Code More leetcode questions solved: https://www.youtube.com/watch?v=O5yxoFS_diY&list=PLr9zbByiJa3Ua2AgTrdvot6AQ3b4CxWrF Gear used: Mic: https://amzn.to/3awi3b6 Drawing pad: https://amzn.to/2O7PaaU

You May Also Like

Coding Mastery Kit

AI-recommended products based on this video

Loading...
Amazon Basics Low-Odor Chisel Tip Dry Erase Office and Home Whiteboard Marker, Pack of 12, Assorted Colors

Amazon Basics Low-Odor Chisel Tip Dry Erase Office and Home Whiteboard Marker, Pack of 12, Assorted Colors

(31,569)
$4.49
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Rose Gold

Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Rose Gold

(202)
$31.99
FREE delivery Thu, Nov 20 on your first order
Loading...
Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Workout

Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Workout

(202)
$31.99
FREE delivery Thu, Nov 20 on your first order
Loading...
Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Workout

Wireless Earbuds, Bluetooth Ear Buds 5.4 Mini HiFi Stereo with 4 ENC Noise Cancelling Mics Wireless Headphones, 40H in Ear Earphones, USB C, IP7 Waterproof Bluetooth Headphones for Sports, Workout

(200)
$29.99
FREE delivery Sat, Nov 22 on your first order
Loading...
Monster Persona SE ANC Active Noise Cancelling Headphones, Bluetooth Headphones Over Ear with 60H Playtime, HiFi Stereo Audio, Deep Bass, Wireless Headphones for Office

Monster Persona SE ANC Active Noise Cancelling Headphones, Bluetooth Headphones Over Ear with 60H Playtime, HiFi Stereo Audio, Deep Bass, Wireless Headphones for Office

(2)
$59.99
FREE delivery Tue, Nov 11
200+ bought in past month
Loading...
ARZOPA Portable Monitor, 16.1" FHD 1080P Kickstand 100% sRGB High Color Gamut Portable Laptop Monitor IPS Eye Care Screen for High-end Office & Entertainment - Z1C

ARZOPA Portable Monitor, 16.1" FHD 1080P Kickstand 100% sRGB High Color Gamut Portable Laptop Monitor IPS Eye Care Screen for High-end Office & Entertainment - Z1C

(2,728)
$129.99
FREE delivery Tue, Aug 12
100+ bought in past month