Preskoči na glavni sadržaj
🔒 Način pregleda. Prvih petnaest Foundations lekcija je besplatno; ova je Pro. Pokrenite 7-dnevni trial da otključate editor, AI savjete i ostatak programa. Kartica obavezna, otkažite bilo kada u Dashboard.Pokreni 7-dnevni trial →
⚡
← Kolegiji›Interview PrepModul 1 · Big-O & Easy Patterns›Klizni prozor: najduži jedinstveni podnizwrite5 / 104
+100 XP
Zadatak🌐 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.
✏️ Piši kod ovdje
🐍
Učitavanje Pythona...
Jednokratno preuzimanje (~1 MB). Zatim radi odmah.
📊 Rezultat
Klikni Pokreni da vidiš rezultat...