Parcours d'apprentissage

Pratiquer Rust

Dix exercices courts : FizzBuzz, Fibonacci, nombres premiers, chaînes, recherche dichotomique et compte bancaire.

10 leçons · 16 défis

  1. Leçon 1 défi FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.
  2. Leçon 2 défis Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.
  3. Leçon 2 défis Prime Numbers Check whether a number is prime and list the primes up to 30.
  4. Leçon 1 défi Reverse a String Reverse the characters of a string and the words of a sentence.
  5. Leçon 2 défis Palindrome Check Test whether text reads the same forwards and backwards.
  6. Leçon 2 défis Word Frequency Counter Count how often each word appears with a HashMap.
  7. Leçon 1 défi Temperature Converter Convert between Celsius and Fahrenheit with an enum.
  8. Leçon 2 défis Binary Search Find a value in a sorted slice by halving the search range.
  9. Leçon 1 défi Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
  10. Leçon 2 défis Sort Structs: Student Ranking Sort a vector of structs by score and name, then compute the average.