Ad
  • Default User Avatar

    Same error here :/ My solution works fine in another environment.
    (NameError: name 'maketrans' is not defined)

  • Default User Avatar

    I really enjoyed the added difficulty, made me learn a few new things about sorting :-)

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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 :/.

  • Default User Avatar

    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);
    };

  • Default User Avatar

    Same for me, also on Python

  • Default User Avatar

    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 :)

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution