Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tim-harding/cracking_the_coding_interview
Rust problems, tests, and solutions for Cracking the Coding Interview
https://github.com/tim-harding/cracking_the_coding_interview
cracking-the-coding-interview leet problem-sol problems rust rust-lang rust-language
Last synced: 1 day ago
JSON representation
Rust problems, tests, and solutions for Cracking the Coding Interview
- Host: GitHub
- URL: https://github.com/tim-harding/cracking_the_coding_interview
- Owner: tim-harding
- Created: 2023-08-31T18:50:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T19:19:03.000Z (about 1 year ago)
- Last Synced: 2024-10-13T13:22:20.652Z (about 1 month ago)
- Topics: cracking-the-coding-interview, leet, problem-sol, problems, rust, rust-lang, rust-language
- Language: Rust
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cracking the Coding Interview in Rust
This repository contains [Cracking the Coding Interview 6th
edition](https://www.amazon.com/Cracking-Coding-Interview-Programming-Questions/dp/0984782850)
problems and solutions in Rust. Problems are provided in the `problems` module
with test cases so you can write your own solutions. Solutions are provided in
the separate `solutions` module so you won't be influenced by the correct
answers when approaching problems. Oftentimes, several alternate solutions are
provided for various constraints. Note that this is supplementary material and
the book is recommended for additional advice on interviewing, negotiation, and
how to approach problems. The book also contains knowledge and design questions
that don't translate well to this format.## Usage
To get started, open the file
`src/problems/_01_arrays_and_strings/_01_is_unique.rs`. This corresponds to
chapter 1.1 in the book. You will replace the `impl` for the `Solution` struct
with your code. To run the tests for just this module, use `cargo test
_01_is_unique`. If you are stuck, you can reference the solutions in
`src/solutions/_01_arrays_and_strings/_01_is_unique.rs`. Happy coding!