Soal
00:00

21. Longest Substring Without Repeating Characters

SedangStringAmazonGoogleMicrosoft

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

Contoh 1:

Input: s = "abcabcbb"
Output: 3

Contoh 2:

Input: s = "bbbbb"
Output: 1

Batasan:

  • 0 <= s.length <= 5 * 10^4
Mode kode inti
● Tersimpan otomatisBaris 1, kolom 1