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.
Same error here :/ My solution works fine in another environment.
(NameError: name 'maketrans' is not defined)
I really enjoyed the added difficulty, made me learn a few new things about sorting :-)
This comment is hidden because it contains spoiler information about the solution
Ok I think technically you are right IVBakker but i was also disappointed. As I am still at the beginning of my learning I figured out a recursive solution and was pretty proud of it because its also the first time I used the OS module, so two new things tackled!
I hoped to check others submissions for different approaches to solving this kata with a recursive function. Unfortunately i could not find one :/.
I also can not commit my answer , but I hava a test in Chrome-Console,it pass,here is my code (javascript):
var circleArea = function(radius) {
if(typeof radius != 'number' || radius <=0) return false;
return (Math.PIradiusradius).toFixed(2);
};
Same for me, also on Python
Well... that worked! thank you for your suggestion. I would have never guessed that this could be why I got the Unknown Error! Passed all the tests now - Moving on to the next Kata :)
Have you tried hitting the Submit button rather than Run Tests? My test case was just the function and gave me "Unknown Error." This is due to not using Test.assert_equals(circleArea(1), 3.14) function inside the test case window. But hitting submit uses the test cases of the author instead of your own, thus passing the test if your code works. Which it looks like it does.
Java version desperately needs clarification in descripton. It asks to return a number or false. I didn't realise before after implementing object returning that its actually asking for IllegalArgumentException.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution