Ad
  • Custom User Avatar

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

  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/197.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar

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

  • Custom User Avatar

    Does this kata even work in Coffeescript? I doubt it.

  • Custom User Avatar

    My solution (Python) using age < 14 instead of age <= 14 passes all the tests, you should put a fixed test for age = 14 to avoid this

  • Custom User Avatar

    Haskell: the reference solution expects Right [] for n = 2.

  • Custom User Avatar

    Ruby 3.0 should be enabled.

  • Custom User Avatar

    I'm trying to learn Haskell. The sample tests are passing OK. However when I try the whole test suite, I get some errors. I can see the expected result and the result my code throwed. But I want to see also the given input. Does it exists a way here in Codewars to debug the input data given to Haskell code? Any tips would be appreciated.

    Best,

  • Custom User Avatar

    Crystal should use tuples instead of arrays.

  • Custom User Avatar

    I think it should be clearer that you should use the new equations if the age is less than 14, i thought you wanted us to use the new equation the whole time

  • Custom User Avatar

    Also, if given a floating point number, return the list of pernicious numbers with the number floored (rounded down).

    This is an idiotic requirement that is also not fulfilable because float range is different from int range. A number bigger than maximum safe ingeter will cause tons of problems.

  • Custom User Avatar

    Well, I have to say... This is quite poorly designed, sorry... :-s

    • the name of the dictionnary isn't enough visible (I add to read a second time the text to find it). You should put it in the example block (in the description), that's especially the right place for it.
    • this dict being a constant, it should be named ELEMENTS
    • wrong information in description: Doesn't exist is expected, not Does not exist
    • you ask for 2 functions, encode and decode, but you provide only one, named decode... And that is supposed to encode too. That's quite confusing and bad practice (and illogical)!
    • useless link in the description (link to a draft. Seems you fused both katas in the present one)

    I was happy to do a kata about chemistry but it was somehow a painfull experience, finally... ;-/

  • Custom User Avatar

    There are misprints in basic test cases:
    Test.assert_equals(decode("NaNaNaNaNa", "Sodium Sodium Sodium Sodium Sodium") instead of
    Test.assert_equals(decode("NaNaNaNaNa"), "Sodium Sodium Sodium Sodium Sodium") and
    Test.assert_equals(decode("Sodium Sodium Sodium Sodium Sodium", "NaNaNaNaNa") instead of
    Test.assert_equals(decode("Sodium Sodium Sodium Sodium Sodium"), "NaNaNaNaNa").
    To make the kata harder, you could mix elements and symbols in the input string.
    Anyway, nice kata, thanks!

  • Custom User Avatar

    Nice kata, but there is a big flaw.

    You state that there will only be one solution your tests, but I get the following failed test message:

    'NICe - Nitrogen Iodine Cerium' should equal 'NiCe - Nickel Cerium'
    
  • Custom User Avatar

    The description could use some proofreading. I noticed some syntax errors, such as double negetives, and things could be better worded. Also, I am wondering if it is possible to do tests that have multiple possible solutions, instead of flat out stating that you are not doing it.