Lộ trình học

Luyện tập Rust

Mười bài tập ngắn: FizzBuzz, Fibonacci, số nguyên tố, chuỗi, tìm kiếm nhị phân và tài khoản ngân hàng.

10 bài học · 16 thử thách

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