Aller au contenu principal
🔒 Mode aperçu. Les quinze premières leçons Foundations sont gratuites ; celle-ci est Pro. Démarrez un trial de 7 jours pour débloquer l'éditeur, les conseils AI et le reste du programme. Carte requise, annulez à tout moment dans Dashboard.Démarrer le trial de 7 jours →
← CoursInterview PrepModule 4 · Programmation dynamique et tasFenwick / Arbre indexé binairewrite54 / 104
+150 XP
Tâche🌐 shown in EN
📝 **Question:** Build BIT for n=5 by updating each index with [3,2,-1,6,5]. Query range_sum(2, 4) (=2 + -1 + 6 = 7). Print it. 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ Écris ton code ici
🐍
Chargement de Python...
Téléchargement unique (~1 Mo). Ensuite, c’est instantané.
📊 Résultat
Cliquez sur Exécuter pour voir le résultat...