- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AINeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Rust practice
Ten short exercises: FizzBuzz, Fibonacci, primes, strings, binary search and a bank account.
- Lesson 1 challenge FizzBuzz Solve the classic FizzBuzz problem with match on a tuple.
- Lesson 2 challenges Fibonacci Sequence Generate Fibonacci numbers with a loop and a vector.
- Lesson 2 challenges Prime Numbers Check whether a number is prime and list the primes up to 30.
- Lesson 1 challenge Reverse a String Reverse the characters of a string and the words of a sentence.
- Lesson 2 challenges Palindrome Check Test whether text reads the same forwards and backwards.
- Lesson 2 challenges Word Frequency Counter Count how often each word appears with a HashMap.
- Lesson 1 challenge Temperature Converter Convert between Celsius and Fahrenheit with an enum.
- Lesson 2 challenges Binary Search Find a value in a sorted slice by halving the search range.
- Lesson 1 challenge Bank Account with Result Model deposits and withdrawals that can fail with your own error type.
- Lesson 2 challenges Sort Structs: Student Ranking Sort a vector of structs by score and name, then compute the average.