๐ 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 โ
๐ **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.