Maximum Product Sub-array (LeetCode 152) | Full Solution with animations and proof | Simplified

Nikhil Lohia • May 8, 2023
Video Thumbnail
Nikhil Lohia Logo

Nikhil Lohia

View Channel

About

I want to share with you my knowledge, that I have gained all my life. I like to see every task in your day to day life as an interesting problem to solve, and if you can understand the requirements, solving for it can become somewhat intuitive. I try to explore certain aspects of day to day life and how I can make them easier for you. This involves daily hacks, tutorials, innovations, new discoveries, experiences and all the stuff I find amusing. As a software engineer myself, I also believe that good problem solving skills can help you overcome most of the barriers in life. Programming is one of them. If you know how to approach a problem, writing a code for it in any language could be a very typical task. With this channel I aim to focus on the way to solve a problem efficiently rather than just its implementation.

You May Also Like

Coding Practice Essentials

AI-recommended products based on this video

Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14
Loading...
24" Large Portable Monitor, 1080P FHD 100Hz Laptop Screen Extender, 125% sRGB IPS Monitor Extender, USB C HDMI Office Gaming with Detachable Stand, Travel Monitor for Window MAC Phone Xbox Switch
Amazon's Choice

24" Large Portable Monitor, 1080P FHD 100Hz Laptop Screen Extender, 125% sRGB IPS Monitor Extender, USB C HDMI Office Gaming with Detachable Stand, Travel Monitor for Window MAC Phone Xbox Switch

(56)
$335.99$299.99
$19.94 delivery Mon, Aug 11
Loading...
Usparkle 18.5 Inch Large Portable Monitor, 120Hz 1080P FHD IPS Portable Travel Second Screen Display for Laptop/Phone/Xbox PS4/5, 125% sRGB, Dual Speakers, VESA & Smart Cover

Usparkle 18.5 Inch Large Portable Monitor, 120Hz 1080P FHD IPS Portable Travel Second Screen Display for Laptop/Phone/Xbox PS4/5, 125% sRGB, Dual Speakers, VESA & Smart Cover

(149)
$240.44$235.23
FREE delivery Aug 12 - 14
Loading...
Upperizon Portable Gaming Monitor 18.5 inch 1080P FHD 100 Hz 125% sRGB USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5, Travel Monitor with Kickstand, VESA Compatible

Upperizon Portable Gaming Monitor 18.5 inch 1080P FHD 100 Hz 125% sRGB USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5, Travel Monitor with Kickstand, VESA Compatible

(401)
$175.99
FREE delivery Tue, Aug 12
Loading...
18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

(2,007)
$239.99
FREE delivery Wed, Aug 13
50+ bought in past month
Loading...
HLDIRECT 47 Inch Gaming Desk with LED Lights, Home Office Gamer Desk, Ergonomic Computer Table with Large Carbon Fiber Desktop, Computer Desk with Cup Holder & Headphone Hook for Home Office, Black

HLDIRECT 47 Inch Gaming Desk with LED Lights, Home Office Gamer Desk, Ergonomic Computer Table with Large Carbon Fiber Desktop, Computer Desk with Cup Holder & Headphone Hook for Home Office, Black

(591)
$107.99
FREE delivery Thu, Jun 26
Loading...
FOYTOKI 2 Sets Rechargeable Hand Warmers Portable with Temperature Levels Ergonomic Design for School Office

FOYTOKI 2 Sets Rechargeable Hand Warmers Portable with Temperature Levels Ergonomic Design for School Office

(0)
$14.15
FREE delivery Jul 2 - 22
Loading...
IMGadgets 47 x 24 Inches Height Adjustable Electric Standing Desk 2024, 5th Gen Quieter Motor Ergonomic Sit Stand Up Home Office Computer Desk with Height Memory Buttons, Display, 2 Headphone Holders
Best Seller

IMGadgets 47 x 24 Inches Height Adjustable Electric Standing Desk 2024, 5th Gen Quieter Motor Ergonomic Sit Stand Up Home Office Computer Desk with Height Memory Buttons, Display, 2 Headphone Holders

(438)
$169.95
FREE delivery Thu, Jun 26
200+ bought in past month
Loading...
SEVEN WARRIOR Gaming Desk with LED Lights & Power Outlets, 55" Computer Desk with Monitor Shelf, Home Office Desk with Cup Holder and Headphone Hook, Ergonomic, Carbon Fiber Surface Black

SEVEN WARRIOR Gaming Desk with LED Lights & Power Outlets, 55" Computer Desk with Monitor Shelf, Home Office Desk with Cup Holder and Headphone Hook, Ergonomic, Carbon Fiber Surface Black

(693)
$109.99
FREE delivery Thu, Jun 26
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

(8)
$39.99
FREE delivery Tue, Nov 4
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

(40)
$39.99
FREE delivery Thu, Nov 13
Loading...
Shcngqio 1080P Full HD Webcam with Privacy Cover, Wide Angle Lens, Active Light Correction, Plug and Play USB Webcam for PC, Desktop,Laptop (Black)

Shcngqio 1080P Full HD Webcam with Privacy Cover, Wide Angle Lens, Active Light Correction, Plug and Play USB Webcam for PC, Desktop,Laptop (Black)

(205)
$28.99
Prime
500+ bought in past month
Loading...
TRAUSI HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming (1080P, Black)

TRAUSI HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming (1080P, Black)

(284)
$27.99
Prime
1K+ bought in past month
Loading...
HP 17.3" FHD IPS Laptop for Business, AMD Ryzen 5 7430U, 32GB RAM, 1.16TB Storage (1TB SSD+160GB Docking Station Set), AMD Radeon Graphics, Num Pad, Webcam, HD Audio, Wi-Fi 6, Win 11 Home, Silver

HP 17.3" FHD IPS Laptop for Business, AMD Ryzen 5 7430U, 32GB RAM, 1.16TB Storage (1TB SSD+160GB Docking Station Set), AMD Radeon Graphics, Num Pad, Webcam, HD Audio, Wi-Fi 6, Win 11 Home, Silver

(4)
$899.00
FREE delivery Sat, Jun 21Only 5 left in stock.
Loading...
TRAUSI 1080P HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming Black

TRAUSI 1080P HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming Black

(205)
$28.99
FREE delivery Wed, Jul 2 on your first order
1K+ bought in past month