Vai al contenuto principale
๐Ÿ”’ Modalitร  anteprima. Le prime quindici lezioni di Foundations sono gratuite; questa รจ Pro. Avvia un trial di 7 giorni per sbloccare l'editor, i suggerimenti AI e il resto del programma. Carta richiesta, disdici in qualsiasi momento dalla Dashboard.Avvia trial di 7 giorni โ†’
โšก
โ† Corsiโ€บInterview PrepModulo 1 ยท Big-O e modelli faciliโ€บFinestra scorrevole: sottostringa univoca piรน lungawrite5 / 104
+100 XP
Compito๐ŸŒ shown in EN
๐Ÿ“ **Task:** Write `longest_unique(s)` returning the length of the longest substring of `s` with all distinct characters. Print `longest_unique('abcabcbb')`. ๐Ÿ“‹ Implement the function above. Test cases run automatically. ๐Ÿ’ก **Hint:** Re-read the theory if you get stuck โ€” the pattern is right there.
โœ๏ธ Scrivi il tuo codice qui
๐Ÿ
Caricamento Python...
Download una tantum (~1 MB). Poi รจ istantaneo.
๐Ÿ“Š Risultato
Premi Esegui per vedere il risultato...