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.
400?
Saying that 471 people have completed this question in JavaScript it is very likely your code is incorrect.
Also since there are random tests on this kata you will find that the passed/failed amount will vary.
Fixed
Fixed. See @Bouchert below's comment. Your answer will still be wrong after the fix.
Fixed.
Thanks Luminux. I have updated the test cases and reference solution to what @Bouchert below has suggested. I'm not the author of the C# kata, I only created the javascript version, so I wasn't aware of the float rounding issues.
First of all i'm sorry for my excessive behavior towards you! I guess i must have been having a rough day... (not that it's any excuse)
Regarding the issue at hand, I was attempting it in C#!
the numbers are so large you don't have time to simply iterate through them completely => you need a different approach
Hi Luminux. Can you tell me what language you were using to complete the kata? This kata is quite old and I'm not very active on this site anymore, at least when it comes to authoring katas. Before a kata can go live, it is in beta status. When enough users have completed it and ranked it, it can be approved by a power user. There's quite a bit of back and forthing before it is a ranked kata. Hopefully by then, the bulk of issues would have been sorted out, so things like basic tests would have tested thoroughly, not just by me, but the hundreds of other users that have completed it, so I find it unexpected when a user raises an issue for basic tests. This leads me to believe that my description is most likely not conveying what I need to be done or what I have seen countless times, users skim over the description and basic tests and then implement the wrong thing, thus leading to their frustration and then lashing out. It would be great if you could tell me what test is wrong and why you think it is wrong so I can understand where you're coming from. You need to understand that everyone that authors a kata does this for the community and no one here gets paid so it is very disappointing to me when I see behaviour such as yours. Please answer the questions I have asked you so I can have a look otherwise I'm closing this issue.
Nice, but IMHO too easy for 6 kyu.
Ruby translation kumited -- please check and approve.
You're wrong if the test is
Test.assertEquals(divisibleCount(0,1,7),1);
0 is divisible by any number (except 0) and that's the number being counted, not 1.How exactly does 1 go into 7, one time?
Hi Dimas_Day, unfortunately you have not passed all the tests, just the sample tests. The Fixed and random tests contain larger numbers, so you're getting a
JavaScript heap out of memory
error because you're trying to use more heap than is there to use to calculate from them. The javascript tests do not need to be fixed, you need to optimize your code to use less memory... (also make sure it's optimized for time) Good luck!Loading more items...