लर्निंग पाथ

Rust अभ्यास

दस छोटे अभ्यास: FizzBuzz, Fibonacci, अभाज्य संख्याएँ, स्ट्रिंग, बाइनरी सर्च और बैंक खाता।

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.