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