leetle

Daily challenge for 2025-02-11

42. Longest Substring Without Repeating Characters

Write a function solve that finds the length of the longest substring without repeating characters.

Example:
Input: "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.

Run this challenge interactively in Python or JavaScript when the app loads.