Skip to content

Manipulating rust iterators #22

Description

@maicallist

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions