Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
why u even do this?
no problem, Ed. I don't know why you're passing one test but it doesn't lend any credibility to your approach; I hope you can re-work your algorithm to modify the input array "in-place"
Sorry. 'Big Boy' is the largest array test.
not an issue a question. Generic message below:
Seems you're "rather new" to cw, so here are some general guidelines about the comments:
Issue
: problem in the kata itself (description, wrong tests, wrong internal solution...)Suggestions
: well, I guess that part is clearQuestion
anything else that is related to you having a problem solving a kata -> that's you, currently.When you post issues:
When you post a question: well, most of the above apply too x)
When you post code, use proper github markdown, so that it's readable.
For your current problem, I bet you're creating a new array while you're supposed to mutate the one in the input.
Closing, since it's not an issue.
cheers
I'm afraid I may be misunderstanding some rule. In the console.log my array is actually showing up as reversed, but the tests are saying it's not? Any feedback, please?
done
This comment is hidden because it contains spoiler information about the solution
oh for sure, I do know it's JS... it's just that (while not the case here) I keep hearing about all kinds of IDE's where we get the "it works on my machine" bit all the time, heh
@rowcased The language is JS, Big Boy doesn't exist.
He's probably talking about that.
I don't know Big Boy, so I can only guess that your code only works there because Big Boy doesn't check the mutation of input, which your code does not handle.
ok but why is it ok only for big boy?
you have to modify (mutate) the original array, so there is no point in declaring
var a = []
This comment is hidden because it contains spoiler information about the solution
srsly u did it in 1 line? i gotta try harder...