This repository contains my solutions to various problems from LeetCode. The problems are categorized into difficulty levels - Easy and Medium.
The repository is structured as follows:
Each problem has its own directory which contains the Rust source code (main.rs
) and a Cargo.toml
file.
- Longest Common Prefix
- Remove Duplicates from Sorted Array
- Remove Element
- Roman to Integer
- Search Insert Position
- Two Sum
To run any solution, navigate to its directory and use the cargo run
command.
cd leetcode/easy/longest_com_prefix
cargo run