Ruta de aprendizaje

Práctica de Rust

Diez ejercicios cortos: FizzBuzz, Fibonacci, primos, cadenas, búsqueda binaria y una cuenta bancaria.

10 lecciones · 16 retos

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