Ad
  • Custom User Avatar

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

  • Custom User Avatar

    C# translation done as well. I'll look into the others in the series as well. Good job with nice beginner Katas

  • Custom User Avatar

    Once this comes out of Beta, i'll translate to C#. I just want to see what you decide to do with the 10+ numbers.

  • Custom User Avatar

    yep, 7 kyu imo.
    However, one thing I think should get some attention:
    Note: Number of characters in a row = Number of row
    Not true. Row 10 would be
    10101010101010101010
    Which is 20 characters, not 10. a simple rewording should suffice, or... should row 10 be
    1010101010 :O Something to think about :)

    Other than that tiny issue, I think this is a great beginner Kata. Looking forward to trying the others in the series (I do love series...)

  • Custom User Avatar

    Nevermind, this Kata is purely maths, not coding, really should say as such in the description. It instead leads one to believe the solution is supposed to be done using array manipulation. Finding a formula is not coding - it's math. Just because we take said formula and write a simple method to calculate it does not make it coding.

  • Custom User Avatar

    GiacomoSorbi: in Javascript, because names is being declared as:
    names = [ 'Sheldon', 'Leonard', 'Penny', 'Rajesh', 'Howard' ]; and not VAR names = [ 'Sheldon', 'Leonard', 'Penny', 'Rajesh', 'Howard' ];, it is created as a global variable. So, if in the function we manipulate 'names' at all, it manipulates the names variable from the test cases as well, not just in the method. To work around this, we have to copy the array to a temp var (var temp = names.splice(0); or similar).. otherwise, by the time it reaches the 3rd or 4th test, names has become some very strange version of itself.
    Also - I am timing out in .js and C#.

  • Custom User Avatar

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

  • Custom User Avatar

    Just as a side note, I did this in one line as a challenge to myself, for fun. It is NOT the most efficient way to do this by any means, and I fully understand that :)

  • Custom User Avatar

    I take it back... it appears to be live already. Never got any notification or anything either.....
    http://www.codewars.com/kata/base-conversion/csharp

  • Custom User Avatar

    That looks to be it. I tried changing it back, got this error:
    "Description cannot be approved, recent changes from related record must be merged first."
    Went to original Kata, sure enough, description has been completely redone. How can I 'reset' my description to the original Kata? Or merge it?

  • Custom User Avatar

    I guess I'm not understanding how this works. I chose to translate an existing Kata. The site created the translation as a Kumite. I've published it, then asked a friend to check - he says it's locked, and I can't find it anywhere on the site except under my published Kumites. Am I missing a step?
    http://www.codewars.com/kumite/5511c2185090637b43000580

  • Custom User Avatar

    nielsup - I had the same issue for quite awhile. Give it a try now, seems to be working
    https://github.com/Codewars/codewars.com/issues/5

  • Custom User Avatar

    Error: Command failed: /tmp/csharp115224-22-lt0wpn/setup.cs(3,21): error CS0101: The namespace global::' already contains a definition for Kata'
    /tmp/csharp115224-22-lt0wpn/code.cs(3,21): (Location of the symbol related to previous error)

    Trying to make a C# translation of an existing Kata in Kumite, continue to get this error. I can name my class anything in the world, will get the same error (definition for )

    http://imgur.com/kUEU88e
    Change class name:
    http://imgur.com/ykcQ34m

  • Custom User Avatar

    Update description a little more, adding punctuation:
    Given a word or a sentence, determine if the inverse of the word or sentence is the same as the original.
    Only letters and numbers matter; ignore special characters and white spaces.

    For instance: < a not e

    Since you specified letters and numbers, it would also be good to have some test cases with numbers

    Test methods:
    GivenAInvlidPalindromeWithSpecialCharactersOutputShouldBeFalse
    These are very difficult to read. Would it not be easier to use the string parameter of Assert.AreEqual?
    Assert.AreEqual(false, Kata.IsPalindrome("Hello ./?!@#$%^&*(){}[];'\|<>,"), "Invalid case with special characters should return false.");
    Then have a single test method?

  • Custom User Avatar

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

  • Loading more items...