LeetCode 124. Binary Tree Maximum Path Sum [Coding Interview Solution Explained]

Shiran Afergan November 23, 2021
Video Thumbnail
Shiran Afergan Logo

Shiran Afergan

View Channel

About

Hey guys, I’m Shiran, and I am a software engineer at Facebook (Meta). I make videos about coding interviews, algorithms and data structures. I hope this channel helps you do well on your interview and get the job that you want :) If you have a coding question that you would like me to cover, let me know with a comment and I’ll do my best to cover it in upcoming videos.

You May Also Like

Level Up Your Gaming Rig

AI-recommended products based on this video

Loading...
acer Aspire 3 A315-24P-R7VH, 15.6" FHD 1920x1080 Laptop, AMD Ryzen 3 7320U, Radeon Graphics, 8GB RAM, 128G SSD, Windows 11 in S Mode
Best Seller

acer Aspire 3 A315-24P-R7VH, 15.6" FHD 1920x1080 Laptop, AMD Ryzen 3 7320U, Radeon Graphics, 8GB RAM, 128G SSD, Windows 11 in S Mode

(3,603)
$529.99$489.99
FREE delivery Tue, Jun 17
500+ bought in past month
Loading...
Corsair Vengeance LPX 32GB (2 X 16GB) DDR4 3200 (PC4-25600) C16 1.35V Desktop Memory - Black
Best Seller

Corsair Vengeance LPX 32GB (2 X 16GB) DDR4 3200 (PC4-25600) C16 1.35V Desktop Memory - Black

(16,675)
$112.99$101.69
FREE delivery Sun, Aug 10
500+ bought in past month
Loading...
GMKtec Mini PC Intel Core i5-12450H 16GB DDR4 1TB M.2 SSD Dual-Channel 4k Dual Display Desktop Mini Computers

GMKtec Mini PC Intel Core i5-12450H 16GB DDR4 1TB M.2 SSD Dual-Channel 4k Dual Display Desktop Mini Computers

(41)
$1,183.52$1,177.99
FREE delivery Aug 14 - 22Only 3 left in stock.
Loading...
GMKtec Mini PC NAS, G9 N150 Dual Boot Win Linux Desktop Computer 12GB DDR5 64GB EMMC + 1TB M.2 SSD, 4*M.2 NVMe Slots, Dual NIC 2.5GbE, USB-C/USB 3.2 10Gbps, Network Attached Storage

GMKtec Mini PC NAS, G9 N150 Dual Boot Win Linux Desktop Computer 12GB DDR5 64GB EMMC + 1TB M.2 SSD, 4*M.2 NVMe Slots, Dual NIC 2.5GbE, USB-C/USB 3.2 10Gbps, Network Attached Storage

(966)
$269.99
50+ bought in past month
Loading...
DreamQuest Mini Desktop Computer Windows 11 Pro Preinstalled, Intel 12th N95 (up to 3.4GHz) Mini Pc with 32GB RAM 1TB M.2 SSD, USB3.2, BT4.2,WiFi 5,4k HDMI, Gigabit Port for Home Office

DreamQuest Mini Desktop Computer Windows 11 Pro Preinstalled, Intel 12th N95 (up to 3.4GHz) Mini Pc with 32GB RAM 1TB M.2 SSD, USB3.2, BT4.2,WiFi 5,4k HDMI, Gigabit Port for Home Office

(211)
$512.63$512.45
FREE delivery Jun 19 - 23
Loading...
KAMRUI Mini PC W-11 Pro, 16GB RAM 1TB M.2 SSD, Mini Computers with 12 Gen Ν95 Processor (up to 3.4GHz), Mini Desktop Computers Support 2.5" SSD/WiFi/BT/Dual 4k Display

KAMRUI Mini PC W-11 Pro, 16GB RAM 1TB M.2 SSD, Mini Computers with 12 Gen Ν95 Processor (up to 3.4GHz), Mini Desktop Computers Support 2.5" SSD/WiFi/BT/Dual 4k Display

(1,466)
$269.00
PrimeFREE delivery Sat, Jun 14
Loading...
Western Digital 2TB WD Blue SA510 SATA Internal Solid State Drive SSD - SATA III 6 Gb/s, 2.5"/7mm, Up to 560 MB/s - WDS200T3B0A

Western Digital 2TB WD Blue SA510 SATA Internal Solid State Drive SSD - SATA III 6 Gb/s, 2.5"/7mm, Up to 560 MB/s - WDS200T3B0A

(74,910)
$169.97
FREE delivery Tue, Jun 17
50+ bought in past month
Loading...
EVGA 1000 GQ, 80+ GOLD 1000W, Semi Modular, EVGA ECO Mode, 5 Year Warranty, Power Supply 210-GQ-1000-V1,Black

EVGA 1000 GQ, 80+ GOLD 1000W, Semi Modular, EVGA ECO Mode, 5 Year Warranty, Power Supply 210-GQ-1000-V1,Black

(396)
$199.95
FREE delivery Tue, Oct 14
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
KOORUI 24 Inch IPS Gaming Monitor, FHD 1920×1080p, 165Hz 200Hz Monitors, 1ms with Adaptive Sync, DCI-P3 90% Color Gamut, HDR400, 2 x HDMI 2.0, DisplayPort 1.4, Tilt Adjustable, G2411P

KOORUI 24 Inch IPS Gaming Monitor, FHD 1920×1080p, 165Hz 200Hz Monitors, 1ms with Adaptive Sync, DCI-P3 90% Color Gamut, HDR400, 2 x HDMI 2.0, DisplayPort 1.4, Tilt Adjustable, G2411P

(4,083)
$139.99$126.47
FREE delivery Tue, Aug 12
400+ bought in past month
Loading...
CORSAIR Hydro X Series iCUE Link XH405i Custom Cooling Kit – Hardline Water Cooling Loop – XC7 Elite CPU Water Block – XD5 Elite D5 Pump Res – XR5 360mm Radiator – 3X QX120 RGB Fans

CORSAIR Hydro X Series iCUE Link XH405i Custom Cooling Kit – Hardline Water Cooling Loop – XC7 Elite CPU Water Block – XD5 Elite D5 Pump Res – XR5 360mm Radiator – 3X QX120 RGB Fans

(235)
$879.99
FREE delivery Sun, Aug 24