Saltar para o conteúdo principal
🔒 Modo de pré-visualização. As primeiras quinze aulas de Foundations são grátis; esta é Pro. Inicie um trial de 7 dias para desbloquear o editor, as dicas AI e o resto do programa. Cartão necessário, cancele a qualquer momento no Dashboard.Iniciar trial de 7 dias →
⚡
← Cursos›Interview PrepMódulo 1 · Padrões Big-O e Fáceis›Janela deslizante: substring exclusiva mais longawrite5 / 104
+100 XP
Tarefa🌐 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.
✏️ Escreve o teu código aqui
🐍
A carregar Python...
Download único (~1 MB). Depois, instantâneo.
📊 Resultado
Clica em Executar para ver o resultado...