leetcode-rust icon indicating copy to clipboard operation
leetcode-rust copied to clipboard

my leetcode solutions in rust

Results 14 leetcode-rust issues
Sort by recently updated
recently updated
newest added

Hi, I removed some redundant code with clippy and added some replace in `build_desc()`, btw, here is another version [leetcode-rust](https://github.com/Millione/leetcode-rust) based on your great job, welcome to comment and issue....

Hi, Out of interest, I read one of your solution s0007. I was given the impression from problem desc that a solution would be like ``` str.push('-'); str[1..].chars().rev().collect::().parse().unwrap_or(0) ``` Your...

filter useless tag like this: ``` * Input: * * 1 0 1 0 0 * 1 0 1 1 1 * 1 1 1 1 1 * 1 0...

Currently, the problem manipulation tool is mixed with solutions, which is inflexible and cannot be easily used outside this project. Build a standalone Cargo extension to do such stuffs will...

我改了下代码输出接口获取的problem,发现id和slug并不匹配: ```shell cargo run 179 Compiling leetcode-rust v0.1.0 (/Users/daniel/CLionProjects/leetcode-rust) Finished dev [unoptimized + debuginfo] target(s) in 3.86s Running `target/debug/leetcode-rust 179` id: 1057, code: rust, slug: numbers-with-repeated-digits id: 1056, code: rust,...

The input: - The array: [2] - the value: 3 - the output: [ ] (testcase failed) - The expected output: [2] (as the array only contains one value "2"...