34
submitted 2 years ago by tracyspcy@lemmy.ml to c/rust@lemmy.ml

Rust is beautiful and at the same time pretty hard language to learn. While mastering it and digging deeper, I decided to play around basic data structures and algorithms. I put a repo with some theory, implementations and examples on github mainly for myself, but maybe someone will find it helpful, or share more effective solutions. For now, just a few topics are covered, and I'm going to update it from time to time.

repo: https://github.com/tracyspacy/algos_data_structures_rust

you are viewing a single comment's thread
view the rest of the comments
[-] eveninghere@beehaw.org 4 points 2 years ago* (last edited 2 years ago)

Nice summary. I'm wondering if comparison with C++ may help, because Rusts' data structure design overlaps with C++ 's STL considerably. Another thing is that Geek for Geeks is not reliable, generally speaking.

[-] tracyspcy@lemmy.ml 4 points 2 years ago

I took some cpp examples as guidance. As for geek for geeks agree, one shouldn't blindly trust it and better use several sources. Adding more reliable sources is definitely point of improvement. I also used introduction to algorithms paperback book, but was lazy to add it as a source ^_^

[-] eveninghere@beehaw.org 2 points 2 years ago* (last edited 2 years ago)

Glad to hear :) What I mean is that Rust vectors and arrays are, for example, very similar to C++ vectors and arrays.

this post was submitted on 22 Mar 2024
34 points (100.0% liked)

Rust Programming

9435 readers
1 users here now

founded 7 years ago
MODERATORS