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.
CofeeScript Translation Kumited! Please accept :d
didn't work on the following argument array: 4ic6j - Expected: '3pen', instead got: 'invalid word'didn't work on the following argument array: 4ty439 - Expected: '2ante-pen', instead got: 'invalid word'---
Sometimes I can catch the above error in random tests. The original solution seems to treat such cases wrong.
You can pass some tests if you provide array with decimal codes od letters.
Description should define what is supposed to be considered a syllab here (syllabification in English is far from being a trivial question in general, and this is supposed to be a programming challenge, not a linguistics exam; I guess the kata only tests obvious cases, but anyhow something is missing).
Random tests (in JavaScript at least) use too limited a range of inputs; a hardcoded solution can be easily derived.
I admit this was my own misinterpretation of the question, but it can be a tad confusing.
When I first saw "even characters", I thought it meant the "even characters" - i.e. 'a' is not even because its value in ascii is 97, but 'b' is because its ascii value is 98. This approach works on the test cases but fails on almost all other random tests.
I would suggest changing the descrition to say "even indexed characters" or something like that, though perhaps thats too descriptive.
C++ Translation
Python translation added
Maybe include a Test for
n=3.166312747397789. I've seen a solution which would output 8 as result.The example tests needs serious improvement:
assertNotSimilartests thrown at the end using 'shouldn't expect this' value of the other kind? It causes nothing but confusion.Try adding a test case with (b,a). Also, is a y a vowel in French?
Apparently you meant the Roman alphabet with 26 letters instead of 23. This is unclear.
coffee translation added
Loading more items...