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.
I agree, I was able to pass the tests without fully functional code
Isnt coding about copy paste?
I actually thought of trying to implement it. Would have been a great regEx paractice, but then... as you say its so easy to google it.
Sorted! had to return the recursive call, a bit smarter now :D.. Cheers guys :)..
That test is
10E11
. I've removed it from all languages and updated description to indicate that tests will be up to10E8
.This comment is hidden because it contains spoiler information about the solution
Well, exactly the same way how others did it with recursion! ;) Idea is to reduce the amount of identical recursive (or any other) calls and "merge" them somehow into a single one, no matter if it's done with recursion or not.
Hi, I wonder, if you send in input of a number that's 100000000000. How do you expect it to be solved via recursion ?
I belive this is a 7 kyo rank Kata, Altough I did enjoy it. thank you!
Remove this test from javascript sample tests:
Test.assertEquals( validPass('1Username') , 'INVALID' );
or change the expected result to'VALID'
This is related to the
"1Username"
sample test mentioned in the thread just above which was active at the time I was solving the kata: that test reflected an invalid variable in either C# or JS, which led me to think the password conditions would be the same, and that the test I presented would make sense. Now that that test itself has been rendered invalid, I clearly see the difference, thanks.Why would that input value be invalid?
No, that sample test should be removed. The control function returns
"VALID"
with that input.need more than one number. should be more clear in the description.
Really easy to be ranked at 6. 7 at best.
Regrading C#:
please add the static to the starting method snice it's missing and will throw error.
Loading more items...