Skip to main content

Command Palette

Search for a command to run...

Longest Substring Without Repeating Characters

Published
โ€ข1 min readโ€ขView as Markdown

๐Ÿง  Problem

Given a string s, find the length of the longest substring without repeating characters.


๐Ÿท๏ธ Tags

Hash Table,String,Sliding Window


๐Ÿ“Š Difficulty

Medium

โœ… Success Rate: 33%
๐Ÿ“ฅ Submissions: 9,621,884
๐Ÿ“ˆ Accepted: 3,175,843


โค๏ธ Reactions

๐Ÿ‘ Likes: 22941
๐Ÿ‘Ž Dislikes: 1027


๐Ÿ’ก Hints


๐Ÿ” Similar Questions

  • Longest Substring with At Most Two Distinct Characters
  • Longest Substring with At Most K Distinct Characters
  • Subarrays with K Different Integers
  • Maximum Erasure Value
  • Number of Equal Count Substrings

More from this blog

ReStart LeetCode

540 posts