Skip to content

rake 1:7 total confusion #19

Description

@kiko23

The solution takes value of current_char to the string indexes from [0..n] then puts the value of the current_char if current_char is "r". So how does it ends up with the correct answer. And also what does setting the value of add_next to 'false' accomplishes. Removing it gives an error, setting it to true comes up with an additional '0' th index character. I am clueless and now kind of bashing my head for 3 hours straight. Can you please elaborate a little, that would be great. I am just a new seedling in the world of coding.

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