This is a demo repository for interview purposes.
NOTE
- you can only add codes, do NOT delete any existing codes
- the total number of lines you need to add will not exceed 50
- do not worry, you have a whole week to finish the following challenges
Here are the things you need to do:
- understand what these codes are used for
- please share your understanding with me in our follow-up interview
- implement all
todo!()
in the codebase(stay relaxed, they are all very simple)src/helper.rs:155: todo!() src/helper.rs:164: todo!() src/helper.rs:173: todo!() src/helper.rs:182: todo!() src/helper.rs:191: todo!() src/helper.rs:200: todo!() src/helper.rs:209: todo!() src/helper.rs:218: todo!() src/helper.rs:228: todo!() src/helper.rs:233: todo!() src/helper.rs:238: todo!() src/mapx/backend.rs:125: todo!() src/mapx/backend.rs:180: todo!() src/mapx/backend.rs:190: todo!() src/mapx/backend.rs:215: todo!() src/mapx/mod.rs:165: todo!() src/vecx/backend.rs:113: todo!() src/vecx/mod.rs:134: todo!() src/vecx/mod.rs:166: todo!() src/vecx/mod.rs:185: todo!()
- make all the following commands succeed
cargo clippy
cargo clippy --features=debug_env
cargo test
cargo test --features=debug_env
When you finish all these tasks, create a PR to this repository, I will check your changes from the PR.