Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake 1:7 total confusion #19

Open
kiko23 opened this issue Jul 30, 2015 · 5 comments
Open

rake 1:7 total confusion #19

kiko23 opened this issue Jul 30, 2015 · 5 comments

Comments

@kiko23
Copy link

kiko23 commented Jul 30, 2015

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.

@kiko23
Copy link
Author

kiko23 commented Jul 30, 2015

Okkay, I think I have just figured one part of it out. I don't know why it took me so long. You are just making the current_char to false so that the first iteration will not give away anything undesirable right.
But I still don't get why are you feeding the same value of 'r' to the to_return string. Please help.

Sorry but the way that I figured isn't making any sense anymore. I am in the dark again.

@kiko23 kiko23 closed this as completed Aug 2, 2015
@kiko23
Copy link
Author

kiko23 commented Aug 2, 2015

guys over at stackoverflow resolved it for me. Great way but a little too complicated!!

@JoshCheek
Copy link
Owner

I'm going to reopen this, I don't have time to look at it right now, but any time you get the brand-new user's perspective is valuable, and worth taking into consideration for anyone who comes after them.

@JoshCheek JoshCheek reopened this Aug 5, 2015
@JoshCheek
Copy link
Owner

I like your tenacity, btw ^_^

@kiko23
Copy link
Author

kiko23 commented Aug 6, 2015

You know what's best Josh !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants