Ad
  • Custom User Avatar

    Why is the expected result for an empty string is an empty array, not an array with a single empty element? There's exactly one way to make an empty string - with zero elements. This choice is so irritating, it's not the first time I see this in a kata that has an empty string as a special case. An empty string usually should NOT be a special case actually. I think returning either [] or [[]] should be allowed for the sake of backwards compatibility, but it should've been only the second one, really. The description speficication of one or more is really weird to me, like why? This doesnt make any sense.

  • Custom User Avatar

    No tests, you can only try your solutions with attempts.
    More, same attempts one time may not pass due to CodeWars 12 seconds time exceed when other time be successful.

  • Custom User Avatar

    JavaScript sample tests throw an error while running. It looks like Test was not imported

  • Custom User Avatar
  • Custom User Avatar

    Just print the Dictionary to the Console and click on the Test button:

    E.g in C#:

    foreach(var el in ELEMENTS)
      Console.WriteLine(el);
    
  • Custom User Avatar

    Apprez.

  • Custom User Avatar

    Nice... in test implementation withSorting and nothing mentioned that in solution that is should be also...

  • Custom User Avatar

    Wich attempt generate different test scenarious...

    This is random testing.

  • Custom User Avatar

    Just add elements which required during test

  • Custom User Avatar

    I'm pretty sure you missed this line from the description:

    ...Finally, the helper object ELEMENTS has been provided, which is a map from each element symbol to its corresponding full name (e.g. ELEMENTS['Na'] === 'Sodium').


    somewhere under the hood platform check something that is absent in the existing tests...

    Because the tests expect you to handle it using the given ELEMENTS object. And of course, in sample tests the author can't add all elements as examples. That's why you can't make your own object based on what is shown in the sample tests.

  • Custom User Avatar

    That is not correct, because tests passed and after pushing on "Sending" somewhere under the hood platform check something that is absent in the existing tests... And I have already spent 4 hours I am trying to figure out where to get these correct names and symbols..

  • Custom User Avatar

    This kata does not require you to actually know the periodic table and all its elements. They are provided for you. You can solve this without knowing a single element's name, theoretically.

    Any nitpicks about scientific accuracy would pass by 99.9% of this platform's audience.

  • Custom User Avatar

    It would be grat to have some of the link with all periodic table of elements.. In the internet in different places could same elements could be named differently (USA/Britain) and also in some places number of elements could be 118, in other 120...

    In this task this tests is hidden and as a blackbox for developer, which list expected, because this is even missed in tests.

    American chemical sosiety know just 118, but this task is not clear what exactly you are expecting here

  • Custom User Avatar

    Rust translation ready for review.

    Note: updates description.

  • Custom User Avatar
  • Loading more items...