Container With Most Water - Leetcode 11 - 2 Pointers (Python)

Greg Hogg February 22, 2024
Video Thumbnail
Greg Hogg Logo

Greg Hogg

View Channel

About

Hey there - my name is Greg Hogg, a statistics alumni from the University of Waterloo in Ontario, Canada. I'm an ex-AI researcher who's published medical papers with Deepbreathe.ai, a startup that continues to win awards in the US military due to my and other's research. I still do AI contracts with companies like Nvidia, HP, and other big names today. I'm most known as a popular coding teacher online for interview skills like DSA and System Design, with over 150 million organic views and 650k+ followers in the space. My day job is running MLNOW Inc (which owns Algomap.io), where I help busy individuals get into the world's best software engineering roles at companies like FAANG. My company's website Algomap has over 75,000 users and a personalized live program tailored to cracking FAANG.

You May Also Like

Must-Have Action Movie Essentials

AI-recommended products based on this video

Loading...
Alcohol Test Strips for Breastmilk,Detects Alcohol in 2 Mintues, High Sensitivity to 0.02%(20mg/dL, Simple Breastmilk Dip Test, Fast and Easy to Use for Breastfeeding Moms-10 pack

Alcohol Test Strips for Breastmilk,Detects Alcohol in 2 Mintues, High Sensitivity to 0.02%(20mg/dL, Simple Breastmilk Dip Test, Fast and Easy to Use for Breastfeeding Moms-10 pack

(127)
$12.99
$5.09 delivery Wed, Aug 13
100+ bought in past month
Loading...
PRISMXR PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 Router, Quest Pro and Pico 4/Ultra, Replace Oculus Link Cable, Wireless Stable and Fast (Puppis S1)

PRISMXR PC-VR Streaming Air Link Compatible with Meta Quest 3S/3/2 AX3000 WiFi6 Router, Quest Pro and Pico 4/Ultra, Replace Oculus Link Cable, Wireless Stable and Fast (Puppis S1)

(708)
$114.00
FREE delivery Wed, Jun 18
Loading...
BIC Wite-Out Brand EZ Correct Correction Tape, 10.2 Metres, 1-Count Pack of White Correction Tape, Fast, Clean and Easy to Use Tear-Resistant Tape Office or School Supplies

BIC Wite-Out Brand EZ Correct Correction Tape, 10.2 Metres, 1-Count Pack of White Correction Tape, Fast, Clean and Easy to Use Tear-Resistant Tape Office or School Supplies

(1,138)
$3.98
FREE delivery Sat, Jun 14 on your first order
700+ bought in past month
Loading...
Amazon Basics 256GB Ultra Fast USB 3.1 High Capacity Flash Drive for Fast Data Transfer and Storage, Black
Best Seller

Amazon Basics 256GB Ultra Fast USB 3.1 High Capacity Flash Drive for Fast Data Transfer and Storage, Black

(25,693)
$21.99$19.79
FREE delivery Sun, Aug 10 on your first order
2K+ bought in past month
Loading...
15Ft Flexible Car Ramp Tracks, Portable Flex Track with Strong Suction Cups,Compatible with 1/64 Diecast Cars,Indoor Outdoor Play Flexible Tracks for Kids,Gifts for 3+ Year Old Boys

15Ft Flexible Car Ramp Tracks, Portable Flex Track with Strong Suction Cups,Compatible with 1/64 Diecast Cars,Indoor Outdoor Play Flexible Tracks for Kids,Gifts for 3+ Year Old Boys

(72)
$35.99
Prime
1K+ bought in past month
Loading...
LISEN Retractable Car Charger, 69W USB C Car Accessories Adapter Fast Charging, Gifts Christmas for Women Men, Travel Essentials for Truck Ford Bronco Honda Dodge, for iPhone 17 Air 16 Pro Max

LISEN Retractable Car Charger, 69W USB C Car Accessories Adapter Fast Charging, Gifts Christmas for Women Men, Travel Essentials for Truck Ford Bronco Honda Dodge, for iPhone 17 Air 16 Pro Max

(10,786)
$26.99
Prime
1K+ bought in past month
Loading...
A3 Laminator Machine,13 Inch 9-in-1 Laminating Machine with Laminating Sheets,Thermal Laminator Hot & Cold with Fast Warm Technology for Home,Office or School Supplies,Black

A3 Laminator Machine,13 Inch 9-in-1 Laminating Machine with Laminating Sheets,Thermal Laminator Hot & Cold with Fast Warm Technology for Home,Office or School Supplies,Black

(64)
$49.99
FREE delivery Dec 22 - 28
500+ bought in past month
Loading...
A3 Laminator Machine,13 Inch 9-in-1 Laminating Machine with Laminating Sheets,Thermal Laminator Hot & Cold with Fast Warm Technology for Home,Office or School Supplies,Black

A3 Laminator Machine,13 Inch 9-in-1 Laminating Machine with Laminating Sheets,Thermal Laminator Hot & Cold with Fast Warm Technology for Home,Office or School Supplies,Black

(21)
$59.99
FREE delivery Sun, Oct 26
Loading...
Hey Curls toronto 5-in-1 Hot Air Styler & Blow Dryer Brush, Negative Ionic Feature for Efficient Drying, Frizz Management, Curling, Volumizing & Straightening (White)

Hey Curls toronto 5-in-1 Hot Air Styler & Blow Dryer Brush, Negative Ionic Feature for Efficient Drying, Frizz Management, Curling, Volumizing & Straightening (White)

(9)
$32.11$30.22
FREE delivery Dec 3 - 23
1K+ bought in past month
Loading...
Wireless CarPlay Adapter– Android Auto Wireless Adapter, 5.8GHz Wi-Fi Plug & Play,Mini and Stable iOS 10+/Android 10+, Fast Auto-Connect for Cars 2016+.
Best Seller

Wireless CarPlay Adapter– Android Auto Wireless Adapter, 5.8GHz Wi-Fi Plug & Play,Mini and Stable iOS 10+/Android 10+, Fast Auto-Connect for Cars 2016+.

(71)
$39.99
FREE delivery Sat, Aug 30
Loading...
iPhone 15 16 Charger Fast Charging 10 ft USB C to USB C Cable Long,Apple 60W Type C Cord and USBC Wall Block Power Adapter Cube Brick for iPhone 16 Pro/16 Pro Max/16 Plus/15 Pro/15 Pro Max/15 Plus

iPhone 15 16 Charger Fast Charging 10 ft USB C to USB C Cable Long,Apple 60W Type C Cord and USBC Wall Block Power Adapter Cube Brick for iPhone 16 Pro/16 Pro Max/16 Plus/15 Pro/15 Pro Max/15 Plus

(101)
$16.14
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
INIU USB C Cable, [3 Pack, 6.6+6.6+1.6ft] 3.1A QC 3.0 Fast Charging Type C Cable, Nylon Braided USB A to USB C Phone Charger Data Cord for iPhone 16/15 Pro Max Samsung S23 S22 Note 10 LG V20 etc

INIU USB C Cable, [3 Pack, 6.6+6.6+1.6ft] 3.1A QC 3.0 Fast Charging Type C Cable, Nylon Braided USB A to USB C Phone Charger Data Cord for iPhone 16/15 Pro Max Samsung S23 S22 Note 10 LG V20 etc

(26,340)
$10.99
FREE delivery Wed, Aug 20 on your first order
5K+ bought in past month
Loading...
Electric Razor for Men Cordless: Wet/Dry Rotary Shaver Waterproof - USB Fast Charging & Sensitive Skin Care - Pop up Trimmer & Precision Blades Vintage Black Upgraded

Electric Razor for Men Cordless: Wet/Dry Rotary Shaver Waterproof - USB Fast Charging & Sensitive Skin Care - Pop up Trimmer & Precision Blades Vintage Black Upgraded

(51)
$49.99
FREE delivery Wed, Dec 24
600+ bought in past month
Loading...
HP Chromebook 14 inch, Intel Celeron N4500, 4GB LPDDR4x, 64GB eMMC, Intel UHD Graphics, HD (1366 x 768), True Vision 720p HD Camera, Fast Charge, ChromeOS, Modern Grey (14a-ne1006ca)

HP Chromebook 14 inch, Intel Celeron N4500, 4GB LPDDR4x, 64GB eMMC, Intel UHD Graphics, HD (1366 x 768), True Vision 720p HD Camera, Fast Charge, ChromeOS, Modern Grey (14a-ne1006ca)

(46)
$199.99
FREE delivery Sun, Aug 24
300+ bought in past month
Loading...
USBC Charger Block for iPhone 16 Charging Plug,MFI Certified Fast USB C Wall Cube 2Pack Power Adapter for iPhone 15/16 Pro/Plus/Pro Max/14/13/12/11,for iPad Air/Mini USB-C Charge Brick Box

USBC Charger Block for iPhone 16 Charging Plug,MFI Certified Fast USB C Wall Cube 2Pack Power Adapter for iPhone 15/16 Pro/Plus/Pro Max/14/13/12/11,for iPad Air/Mini USB-C Charge Brick Box

(6,878)
$13.99
FREE delivery Wed, Aug 20 on your first order
5K+ bought in past month
Loading...
40W USB C Charger Block, 2-Pack Wall Plug Fast Charging Block, 4-Port PD+QC Power Adapter Multiport Cube Brick Type C Box for iPhone 16/15/14/13/12/11/Pro Max/XS/XR/8/7, Tablets, Cellphones

40W USB C Charger Block, 2-Pack Wall Plug Fast Charging Block, 4-Port PD+QC Power Adapter Multiport Cube Brick Type C Box for iPhone 16/15/14/13/12/11/Pro Max/XS/XR/8/7, Tablets, Cellphones

(565)
$24.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Electric Razor for Men Cordless: Wet/Dry Rotary Shaver Waterproof - USB Fast Charging & Sensitive Skin Care - Pop up Trimmer & Precision Blades Vintage Black Upgraded

Electric Razor for Men Cordless: Wet/Dry Rotary Shaver Waterproof - USB Fast Charging & Sensitive Skin Care - Pop up Trimmer & Precision Blades Vintage Black Upgraded

(51)
$49.99
FREE delivery Wed, Dec 24
600+ bought in past month
Loading...
NEEWER Advanced 18 inch LED Ring Light for Phone, LCD Touch Screen, 2.4G Remote Lights Control, 3200-5600K, Tripod Light for iPhone Action Camera, for Studio Makeup TikTok YouTube Video Salon (Black)

NEEWER Advanced 18 inch LED Ring Light for Phone, LCD Touch Screen, 2.4G Remote Lights Control, 3200-5600K, Tripod Light for iPhone Action Camera, for Studio Makeup TikTok YouTube Video Salon (Black)

(2,807)
$181.49
FREE delivery Sun, Aug 10
Loading...
AKASO V50 Elite 4K60fps Touch Screen WiFi Action Camera Voice Control EIS 131 feet Waterproof Camera 8X Zoom Remote Control with with 64GB U3 MicroSDXC Memory Card Global Recycled Standard

AKASO V50 Elite 4K60fps Touch Screen WiFi Action Camera Voice Control EIS 131 feet Waterproof Camera 8X Zoom Remote Control with with 64GB U3 MicroSDXC Memory Card Global Recycled Standard

(848)
$219.99
FREE delivery Sun, Aug 24
Loading...
Portable Heater for Car,12V Heater for Car 200W Fast Heating Defroster Windshield Car Heater That Plugs into Cigarette Lighter for Car

Portable Heater for Car,12V Heater for Car 200W Fast Heating Defroster Windshield Car Heater That Plugs into Cigarette Lighter for Car

(2)
$18.83$10.98
FREE delivery Nov 5 - 7
Loading...
UGREEN 130W Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging Car Adapter with 100W USB C Cable Compatible with Dell XPS, MacBook, iPhone 16 15 14 Pro Max, Galaxy S25 S24 Ultra, iPad Pro

UGREEN 130W Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging Car Adapter with 100W USB C Cable Compatible with Dell XPS, MacBook, iPhone 16 15 14 Pro Max, Galaxy S25 S24 Ultra, iPad Pro

(4,725)
$31.99
500+ bought in past month
Loading...
USB C Car Charger 121W, IDOLCO 2-Port Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging 12V Car Phone Charger Cigarette Lighter Adapter Plug for iPhone 16/15/14 Series, Galaxy S24/MacBook

USB C Car Charger 121W, IDOLCO 2-Port Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging 12V Car Phone Charger Cigarette Lighter Adapter Plug for iPhone 16/15/14 Series, Galaxy S24/MacBook

(45)
$19.99
FREE delivery Tue, Jun 17 on your first order
Loading...
URVNS 240W USB C Car Charger, Super Fast Charging 4-Ports PD3.1 140W/PD3.0 100W PPS 45W QC65W Type-C Car Adapter for MacBook Pro Laptop iPhone 15 14 Max iPad Samsung Galaxy S24/23/22 Pixel etc

URVNS 240W USB C Car Charger, Super Fast Charging 4-Ports PD3.1 140W/PD3.0 100W PPS 45W QC65W Type-C Car Adapter for MacBook Pro Laptop iPhone 15 14 Max iPad Samsung Galaxy S24/23/22 Pixel etc

(114)
$57.36$49.99
Prime$5.48 delivery Mon, Jun 16