Défis de code : Learning-path

Entraînez-vous sur Learning-path avec 40 défis de code, du plus facile au plus difficile. Chaque défi s'exécute dans le navigateur, avec des tests instantanés, une revue de votre code par l'IA et des solutions de la communauté à comparer.

Facile · 35 Moyen · 5

Compétences travaillées: ListesComptageListes 2DArithmétiqueConstruire des chaînesFormulesAccumulateursBoucles forBoucles imbriquéesBoucles whileBoucles à reboursCas de base
  • Python · C++ · C#
  • Tests automatisés
  • Relecture IA
  • Solutions de la communauté
341
Défis
245
Solutions partagées
9
Langages

Tous les défis

Recherchez par nom ou sujet, ou filtrez par difficulté.

40 défis
Facile

Distance entre deux points

Calculez la distance en ligne droite entre deux points.

Vous apprendrez Théorème de PythagoreRacines carrées
débutantfonctionsLearning-pathmathématiques
Moyen

Gradebook Top Student

Find the student with the highest average score.

Vous apprendrez Listes 2DMoyennes
débutantfonctionsgrillesLearning-path
Moyen

Count Islands

Count groups of connected land cells in a grid.

Vous apprendrez Remplissage par diffusionDFS récursif
débutantgrillesLearning-pathrécursivité
Facile

Number Triangle

Build a triangle of increasing numbers.

Vous apprendrez Lignes croissantesCompteur entre les lignes
débutantLearning-pathboucles imbriquéesmotifs
Facile

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

Vous apprendrez ArithmétiqueValeurs de retour
débutantLearning-pathVariables
Facile

Count Pairs With a Sum

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

Vous apprendrez Paires d'indicesÉviter les doubles comptes
ArraysdébutantLearning-pathboucles imbriquées
Facile

Days in a Month

Return how many days a month has, including leap years.

Vous apprendrez Règles du calendrierFonctions utilitaires
débutantconditionsfonctionsLearning-path
Facile

Average of Three

Average three whole numbers.

Vous apprendrez ArithmétiqueDivision
débutantLearning-pathVariables
Facile

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

Vous apprendrez Motifs de chaînesRemplissage
débutantLearning-pathboucles imbriquéesmotifs
Moyen

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

Vous apprendrez Conditions de victoireDiagonales
débutantconditionsgrillesLearning-path
Facile

Hollow Square

Draw the outline of a square with * characters.

Vous apprendrez Détection des bordsConstruire des chaînes
débutantLearning-pathboucles imbriquéesmotifs
Moyen

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

Vous apprendrez Cas de baseNettoyage de chaînes
débutantLearning-pathrécursivitéStrings
Facile

Min and Max Together

Find the smallest and largest value in one pass.

Vous apprendrez Un seul passagePlusieurs valeurs de retour
ArraysdébutantfonctionsLearning-path
Facile

Celsius vers Fahrenheit

Convertir une température de degrés Celsius en degrés Fahrenheit.

Vous apprendrez FormulesPriorité des opérateurs
débutantLearning-pathVariables
Facile

Halve Until One

Count how many halvings bring a number down to 1.

Vous apprendrez Boucles whileComptage
débutantLearning-pathboucles
Moyen

Recursive Power

Compute a power recursively by halving the exponent.

Vous apprendrez Diviser l'exposant par deuxDiviser pour régner
débutantLearning-pathrécursivité
Facile

Password Rules Check

Check a password against simple strength rules.

Vous apprendrez ValidationDrapeaux booléens
débutantconditionsLearning-pathStrings
Facile

Simple Interest

Find the total amount after simple interest.

Vous apprendrez PourcentagesProblèmes concrets
débutantLearning-pathVariables