Longest Substring without Repeating Characters

Try to solve the Longest Substring without Repeating Characters problem.

Statement

Given a string, str, return the length of the longest substring without repeating characters.

Constraints:

  • 11 ≤\leq str.length ≤105\leq 10^5
  • str consists of English letters, digits, and spaces.

Examples