Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
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.
This comment is hidden because it contains spoiler information about the solution
Does this kata even work in Coffeescript? I doubt it.
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
Haskell: the reference solution expects
Right []
forn = 2
.Ruby 3.0 should be enabled.
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,
Crystal should use tuples instead of arrays.
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
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.
Well, I have to say... This is quite poorly designed, sorry... :-s
ELEMENTS
Doesn't exist
is expected, notDoes not exist
decode
... And that is supposed to encode too. That's quite confusing and bad practice (and illogical)!I was happy to do a kata about chemistry but it was somehow a painfull experience, finally... ;-/
There are misprints in basic test cases:
Test.assert_equals(decode("NaNaNaNaNa", "Sodium Sodium Sodium Sodium Sodium")
instead ofTest.assert_equals(decode("NaNaNaNaNa"), "Sodium Sodium Sodium Sodium Sodium")
andTest.assert_equals(decode("Sodium Sodium Sodium Sodium Sodium", "NaNaNaNaNa")
instead ofTest.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!
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:
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.