Trilha de aprendizado

Prática de Rust

Dez exercícios curtos: FizzBuzz, Fibonacci, primos, strings, busca binária e uma conta bancária.

10 lições · 16 desafios

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