学習パス

Rust の練習

短い練習問題 10 問: 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.