Naar hoofdinhoud
πŸ”’ Voorbeeldmodus. De eerste vijftien Foundations-lessen zijn gratis; deze is Pro. Start een 7-daagse trial om de editor, AI-hints en de rest van het curriculum te ontgrendelen. Kaart vereist, op elk moment opzegbaar in Dashboard.Start 7-daagse trial β†’
⚑
← Cursussenβ€ΊInterview PrepModule 1 Β· Big-O en eenvoudige patronenβ€ΊSchuifraam: max. bedragwrite4 / 104
+100 XP
Opdracht🌐 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.
✏️ Schrijf hier je code
🐍
Python laden...
Eenmalige download (~1 MB). Daarna direct beschikbaar.
πŸ“Š Resultaat
Klik op Uitvoeren om het resultaat te zien...