Ad
  • Default User Avatar

    Hi,
    I edited the description a bit, now the wording is:
    "You will have access to a (preloaded) dictionary (called @COUNTRIES) containing id's and their corresponding length."

    Is this sufficient for you?

  • Default User Avatar

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

  • Default User Avatar

    sry for the late replay - i usually play codewars at the end of the day.
    thanks for the reminder though - i've got no email notice for the issues.

    please have a look at the code - as you see now it's only 1's and 0's...

    randomized tests dont produce only zeros - unfortuinatly i've no idea why the old check did not word...

  • Default User Avatar

    new revision uses binary-strings only...

    i'll leave the nil-test in. I think in every funktion the input should at least be santinized for nil/NULL.

    Also: I dont know thy one guy got performance issues, worked perfectly fine for me - as he used the same code as I did.
    since the original c-version returns a long I assumed that there should be tests with "long" inputs.

  • Default User Avatar

    ty, should be fixed in new revision

  • Default User Avatar

    although i think it should make NO DIFFERENCE to your solution. but now the ruby-tests should only be binary only.

    I'll leave nil in the tests. My reason is: please check your input of every function against nil...

  • Default User Avatar

    added test for real validation - until now the tests only covered the iban-length

    you got a bug: you did not move the first block to the end.

  • Default User Avatar

    added test for real validation - until now the tests only covered the iban-length

    you got a bug: you did not move the first block to the end.

  • Default User Avatar

    you only checked the length - added test for real validation

  • Default User Avatar

    you only checked the length - added test for real validation

  • Default User Avatar

    you only checked the length - added test for real validation

  • Default User Avatar

    can you add some test-cases to the javascript solution.

    for beginners it may be confusing when their code does not seem to work when they hit "attempt"

  • Default User Avatar

    is it possible to update the kata-description at least or is this also depending on the c-translator?

  • Default User Avatar

    I just saw, that the descriptions are the same for every translation.

    Then the c-translation is wrong!

    Btw, why do you think nobody completes this kata in c - its just 7 kyu?

    C: 4 of 4,061
    C++: 409 of 4,061
    C#: 1,003 of 4,061
    js: 1,237 of 4,061
    py: 1,089 of 4,061
    rb: 599 of 4,061

    please, don't assume that a issue created in pure anger is arrogance or i misunderstood the task.
    Just belive me: the C translation does not match the description. And I'm sorry that thsi issue is visible to every translation - i assumed it was only visible for C, otherwhise I would have mentioned it.

    so please can you implement the fix mentioned by lszcs?

  • Default User Avatar

    I am talking about the c translation, where the description state is what I've posting below.

    An it is an issue, because you approved it!
    This whole issue came to me, because a friend of mine stuck solving the challange.

    The description is totally wrong, misleading people to assume that it should be
    10101010
    1111111111

    by providing examples, and does not even contain the word ascii.

    and this is not arrogance - this is pure anger!
    THe part which causes the most anger is, that the tests - static and dynamic does not even cover the given sample!

    ###Task: You have to write a function pattern which returns the following Pattern(See Pattern & Examples) upto n number of rows.
    
    Note:Returning the pattern is not the same as Printing the pattern.
    ####Rules/Note:
    
    If n < 1 then it should return "" i.e. empty string.
    There are no whitespaces in the pattern.
    
    ###Pattern:
    
    1
    22
    333
    ....
    .....
    nnnnnn
    ###Examples:
    
    pattern(5):
    
    1
    22
    333
    4444
    55555
    pattern(11):
    
    1
    22
    333
    4444
    55555
    666666
    7777777
    88888888
    999999999
    10101010101010101010
    1111111111111111111111
    
  • Loading more items...