Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

Member-only story

Rust Challenge: Roman Numerals

Learning Rust Through Small Challenges

John Philip
Rustaceans
Published in
4 min readNov 22, 2024

--

Photo by Ales Krivec on Unsplash

In this mini Rust challenges, we will solve a problem using Rust. The goal of these challenges is to get comfortable reading and writing Rust code by solving various problems.

I do them on a daily basis, so if you want to join please come back here every day and check every challenge and lets us solve them together.

Challenge

These challenges are based on exercises from Exercism. You can find the original challenges and more on their platform below.

Introduction

Today, most people in the world use Arabic numerals (0–9). But if you travelled back two thousand years, you’d find that most Europeans were using Roman numerals instead.

To write a Roman numeral we use the following Latin letters, each of which has a value:

MDCLXVI1000500100501051

A Roman numeral is a sequence of these letters, and its value is the sum of the letters’ values. For example…

--

--

Rustaceans
Rustaceans

Published in Rustaceans

Exploring Rust: Insights and Expertise from Rustaceans

John Philip
John Philip

Written by John Philip

Dev | Life Café | Twitter at @amjohnphilip | Email: dxphilo@gmail.com

No responses yet