Learn Rust by practicing, choose from a variety of coding exercises and challenges to help you improve your Rust programming skills
Create a function that prints 'Hello, world!' to the console using Rust.
Learn to declare immutable variables in Rust and understand their usage.
Define and modify mutable variables in Rust.
Learn how to define and use constants in Rust.
Get familiar with primitive data types in Rust by defining and annotating variables.
Implement a function to convert numerical types using the `as` keyword in Rust.
Practice mathematical operations in Rust, including addition, subtraction, multiplication, and division.
Calculate the sum of all elements in an array.
Create a function that returns a tuple of values.
Understand and use the unit type `()` in Rust.
Implement and work with functions in Rust.
Learn how to define and use closures in Rust.
Implement basic control flow in Rust using if-else statements.
Learn how to use if-else statements in Rust to control the flow of your program.
Implement a function to sum even numbers in a given range using a for loop.
Implement a countdown timer using a while loop in Rust.
Use Rust's pattern matching to determine the weekday given its number.
Understand and implement Rust's ownership model.
Implement Rust's ownership model with mutable references.
Identify and fix ownership rule violations in Rust code.
Write a program that takes a string as input and counts the number of characters in the string.
Write a program that prints 'Fizz' for multiples of three, 'Buzz' for multiples of five, and 'FizzBuzz' for multiples of both.
Write a function that returns the nth number in the Fibonacci sequence.
Implement the From trait for a custom type.
Implement graceful error handling in Rust using the Result type.
Implement a function to check if a number is prime using logical operators and conditional statements.
Implement a function to describe if a number is positive, negative, or zero, and if it is even or odd.
Implement a function to calculate the factorial of a non-negative integer using early returns and loops.
Implement a temperature converter that handles various units and errors.
Implement early returns in Rust to validate user input for age and email.
Write a program that calculates the median and mode of a list of numbers.
Create a program that manages a registry of animals in a sanctuary.
Implement a function to find the first palindrome number in a range using any control flow construct.
Implement a finite state automaton (FSA) to recognize a specific pattern in a sequence of characters.
Implement a maze solver using control flow in Rust to navigate through a maze represented as a grid.
New Challenges Coming Soon! Sign up for our newsletter to get updates.