Leetcode 3. Longest Substring Without Repeating Characters
Code with Alisha
View ChannelAbout
Wish to make Data Structures and Algorithm problems easy. Join our journey and enjoy learning!
Latest Posts
Video Description
Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke", with the length of 3. Notice that the answer must be a substring, "pwke" is a subsequence and not a substring. Example 4: Input: s = "" Output: 0 Link to challenge: https://leetcode.com/problems/longest-substring-without-repeating-characters/
Coding Challenge Essentials
AI-recommended products based on this video

65W 45W Laptop Charger for Acer Aspire 3 5 A515-55 A515-56 A515-46 A515-54 A515-54G A517-52 Swift Spin 1 3 5 SF113-31 SF114-32 Chromebook 11 R11 13 14 15 CB3 C720 C720P Power Adapter

Laptop AC Charger for Acer Aspire 5 A515 A515-56 A515-56T A515-55 A515-54 A515-46 A515-45 A515-44 A514-52G A515-57 A514-54 Laptop

45W Charger for Acer Aspire 5 A515-55 A515-54 A515-56 A515-56T A515-57 A514-52G A514-54 A515-46 A515-44 A515-45 Laptop Power Supply Adapter

65W AC Charger Fit for Acer Aspire 5 1 Series A515 A515-53 A515-53G A515-52 A515-52G A515-52K A515-51 A515-51G A515-41G A515-43 A515-43G A517-51 A517-51G A114-31 A114-32 A111-31 A111-32 Laptop

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

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

Logitech G305 LIGHTSPEED Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G502 HERO High Performance Wired Gaming Mouse, HERO 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC / Mac, Black

Cmokifuly GMK67 65% Mechanical Keyboard Kit Tri-Mode South-Facing RGB LED for 3/5pin Switches,66 Keys+1 Knob Hotswap Socket PCB Gasket Mounted Plate Gaming DIY Keyboard Kit (White)

5 Pcs Adult Keyboard Clicker Toys, Portable Mechanical Keyboard Keychain Toy, Decompression Toys, Funny Cube Key Button Stress Relief for Adults Present to Relief Pass Time

TMKB 60% Mechanical Gaming Keyboard, Brown Tactile Switch, LED Backlight, Anti-Ghosting, Detachable USB-C, Double-Shot Keycaps, 61 Keys, Wired, White

Neck Massager, 2026 Updated Bionic Heated Deep Tissue Massager, Wireless Electric Cervical Neck Massager, Kneading Massager, Electric Kneading Massage Pillow, Rechargeable USB-C

Red Light Therapy Device, 7 Color Skin Care Neck and Face Massager, Portable Facial Massager for Skin Lifting & Tightening

Red Light Therapy Device, 7 in 1 Neck and Face Massager, Portable Facial Massager, face massager for skin tightening and Face Lifting Device

ASUS ZenScreen 15.6” 1080P Portable Monitor (MB16ACVR) - Full HD, IPS, Eye Care, Flicker Free, Blue Light Filter, Kickstand, USB-C Power Delivery, for Laptop, PC, Phone, Console, Antibacterial Surface

Desnuage Teardrop Aquamarine Hoop Earrings Sterling Silver Dangle Light Blue Earrings for Women

Watforsh Big Blue Leaf Silver Dangle Earrings for Women Boho Earrings Drop with Light Blue and Beige Bohemian Tropical Style Plant Dangling for Gift

IPROKKO Laptop 14 inch Privacy Screen Filter for Hp/Dell/Thinkpad/Lenovo/Samsung/Asus/Sony, 16:9 Aspect Ratio Removable Anti Blue Light Glare Protector, 14 in Privacy Shield

NA to Clamp, Quick Release NA to Rail Lock Clamp with 1/4in 3/8in Thread, Standard NA to Clamp Adapter for Camera Cage Friction Arm Ball Head Cold Shoe Microphone Monitor




