Hello LeetCode
Happy New Year!🥳
I've been writing about my journey with the Rustlings exercises for some time now, and these exercises are excellent for mastering the fundamentals of Rust.
If you're not familiar with the Rustlings project, it's a fantastic starting point for learning Rust. It's interactive and quickly gets you familiar with Rust's syntax and compiler errors. Each section also includes a README that directs you to further reading on each problem you encounter.
Having completed these exercises, I thought it would be interesting to elevate my learning by tackling LeetCode problems in Rust. I recognize that there are many solutions out there; some offer great explanations, while others do not. I also understand that there are many ways to solve these problems, so my goal is to approach each problem with both a simpler, more "imperative" style, and a more "functional" or idiomatic Rust solution.
As always, here's my disclaimer: I'm not an expert, but I am continuing my journey of learning. I mostly do this for my own development, but if it helps others, that's even better. I welcome your feedback and suggestions for improvement.
Let's start with the most basic, or at least the first question numerically on LeetCode, the literal first problem: 1. Two Sum.