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: importo massimowrite4 / 104
+100 XP
Compito๐ŸŒ shown in EN
๐Ÿ“ **Task:** Write `max_sum_window(arr, k)` returning the maximum sum of any contiguous subarray of length `k`. Print `max_sum_window([2, 1, 5, 1, 3, 2], 3)`. ๐Ÿ“‹ 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...