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

Manipulating rust iterators

Open maicallist opened this issue 5 years ago • 0 comments

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::<String>().parse().unwrap_or(0)

Your code is much like c than rust.

maicallist avatar Feb 08 '20 01:02 maicallist