Strings

Longest Substring Without Repeating Characters

medium
Given a string `s`, find the length of the longest substring without repeating characters. Example: `lengthOfLongestSubstring("abcabcbb")` → `3` (`"abc"`).
Hint steps(0/3 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.

  3. 3

    Complete previous step or reveal to unlock this hint.