Учебный трек

Практика Rust

Десять коротких упражнений: FizzBuzz, числа Фибоначчи, простые числа, строки, бинарный поиск и банковский счёт.

Уроков: 10 · Задач: 16

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