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.
At that time, because it messed up the expected results. I don't think it matters anymore.
Why do we need to not mutate the input?
Not a site suggestion.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're probably allowing less than perfect choices for B. But without your code, there's not much more we can say.
Please post your code, properly marked up and spoilered, if you want it looked at.
I have every reason to believe the tests are correct.
For some of the random tests, at times my total for programmer A is higher then the expected result. I've walked back through the algorithim, and checked the sum totals (
my sum of totals against the expected sum of totals) and they are equal. If I can return a higher result then the tests expect is there not an error in the tests? I'm assuming this is not the case because I very new to CodeWars, but any insight regarding this would be helpful.
Awesome, sorry for being so stupid!
Don't mutate the input array.
I pass when I hit test, but when I hit attempt I can't pass the last three tests. Why do the last three tests want me to return an array with a nested format when the original input is not nested... Expected: '[[15], 76, [17], [33], [37], [39], 66, 70, 58, 36, [89], 58, 18, 2, 76, [97]]', instead got: '[15, 76, 17, 33, 37, 39, 66, 70, 58, 36, 89, 58, 18, 2, 76, 97]'. I can not solve for this without the other tests failing...
This took quite a while for a 7...
Any one have any websites or suggestions on a good place to start learning regular expressions??? I started the freecodecamp.org one the other day but just wanted to see if anyone had a go to or a regular site they reference for regex...
https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
This comment is hidden because it contains spoiler information about the solution
thanks so much!!!
Loading more items...