Skip to content

Rust-based solutions for popular coding interview problems, focusing on efficiency, readability, and problem-solving techniques.

License

Notifications You must be signed in to change notification settings

shashforge/rust-coding-interview-prep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rust-coding-interview-prep

🦀 A curated collection of coding interview questions and data structures implemented in Rust.

This repository is dedicated to helping developers prepare for coding interviews using the Rust programming language. It covers a wide range of data structures, algorithms, and problem-solving patterns commonly asked in technical interviews at top tech companies.


📌 Why Rust?

Rust is known for its safety, performance, and concurrency. Practicing DSA in Rust strengthens your understanding of memory management, ownership, and low-level system behavior—all while preparing for real-world software engineering interviews.


🚀 What's Inside?

Topic Coverage

  • Data Structures

    • Arrays & Strings
    • Linked Lists
    • Stacks & Queues
    • HashMaps & HashSets
    • Trees & Binary Search Trees
    • Graphs
    • Heaps & Priority Queues
    • Tries & Disjoint Sets
  • Algorithms

    • Sorting & Searching
    • Recursion & Backtracking
    • Dynamic Programming
    • Greedy Algorithms
    • Graph Algorithms (BFS, DFS, Dijkstra, Union-Find)
    • Sliding Window & Two Pointers
    • Bit Manipulation
  • Patterns

    • Top-K Elements
    • Merge Intervals
    • Fast & Slow Pointers
    • Matrix Traversal

🧰 Tech Stack

  • Language: Rust
  • Tooling: Cargo for builds, testing, and dependency management
  • Testing: Inline unit tests and integration tests with cargo test

📂 Project Structure

rust-coding-interview-prep/
├── src/
│   ├── data_structures/
│   ├── algorithms/
│   ├── patterns/
│   └── lib.rs
├── tests/
│   └── integration_tests.rs
├── Cargo.toml
└── README.md

🧪 Running Tests

To run the unit and integration tests:

cargo test

📚 Recommended Resources


🤝 Contributions

Contributions are welcome! Feel free to fork the repository, suggest improvements, fix bugs, or add new problems with clean Rust implementations.


📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.


📬 Contact

Maintainer: Shashi Shankar
📧 Reach out via LinkedIn or open an issue.


Happy Coding & Interview Prep!

About

Rust-based solutions for popular coding interview problems, focusing on efficiency, readability, and problem-solving techniques.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages