Défis de programmation

Renforcez vos compétences en résolution de problèmes avec des défis neutres en langage, à résoudre en Python, C++ ou C#. Chaque soumission est testée automatiquement et relue par l'IA.

  • Python · C++ · C#
  • Tests automatisés
  • Relecture IA
  • Solutions de la communauté
Parcours d'apprentissage
150
Défis
2
Solutions partagées
3
Langages

Tous les défis

Recherchez par sujet, langage ou difficulté.

25 défis
Facile

Count Pairs With a Sum

Count pairs of positions whose values add up to a target.

ArraysBeginnerLearning-pathNested-loops
Aucune solution pour l’instant
Facile

Supprimer les doublons

Ne conserver que la première occurrence de chaque valeur.

ArraysBeginnerSetsStudent-beginner
Aucune solution pour l’instant
Facile

Min and Max Together

Find the smallest and largest value in one pass.

ArraysBeginnerFunctionsLearning-path
Aucune solution pour l’instant
Facile

Triangle de Pascal

Construisez les lignes en additionnant les éléments voisins de la ligne précédente.

ArraysCombinatorics
Aucune solution pour l’instant
Facile

First Negative Index

Find where the first negative number appears.

ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Above-Average Values

Keep the values that are greater than the average.

ArraysBeginnerLearning-path
Aucune solution pour l’instant
Moyen

Comptage des mines voisines au Démineur

Annoter un plateau rectangulaire.

ArraysGrids
Aucune solution pour l’instant
Facile

Swap First and Last

Exchange the first and last items of a list.

ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

ArraysBeginnerFunctionsLearning-path
Aucune solution pour l’instant
Facile

Count Positive Numbers

Count the values greater than zero in a list.

ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Médiane d'une liste

Trouvez la valeur centrale d'une liste après l'avoir triée.

Arraysmath
Aucune solution pour l’instant
Facile

Running Sum

Replace each value with the total so far.

ArraysBeginnerLearning-path
Aucune solution pour l’instant
Facile

Flatten a 2D Array

Combine the rows of a 2D integer array into one array.

ArraysLoops
Aucune solution pour l’instant
Facile

Nombre manquant

Trouvez le nombre manquant dans 0..n.

ArraysBeginnerStudent-beginnermath
Aucune solution pour l’instant
Facile

Rotation d’un tableau

Faites pivoter une liste vers la droite d’un certain nombre de positions.

ArraysBeginnerStudent-beginner
Aucune solution pour l’instant
Facile

Additionner un tableau

Additionnez toutes les valeurs d'une liste.

ArraysBeginnerStudent-beginner
Aucune solution pour l’instant
Facile

Minimum d’un tableau

Trouvez la plus petite valeur dans une liste.

ArraysBeginnerStudent-beginner
Aucune solution pour l’instant
Facile

Moyenne d'un tableau

Calculez la moyenne d'une liste de nombres.

ArraysBeginnerStudent-beginner
Aucune solution pour l’instant