Lernpfad

Rust üben

Zehn kurze Übungen: FizzBuzz, Fibonacci, Primzahlen, Strings, binäre Suche und ein Bankkonto.

10 Lektionen · 16 Challenges

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