[go: nahoru, domu]

Skip to content

Rust problems, tests, and solutions for Cracking the Coding Interview

Notifications You must be signed in to change notification settings

tim-harding/cracking_the_coding_interview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cracking the Coding Interview in Rust

This repository contains Cracking the Coding Interview 6th edition 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!