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.
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.
Python:
Missing
it
block in sample testsImports are missing
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.
Ruby 3.0 should be enabled.
Python testing allows for incorrect solutions to pass, critically so in regards to the simple upper edge case of 100; here's an extreme example.
This comment is hidden because it contains spoiler information about the solution
C++ Translation
Edge cases at len = 100 and 101 might be helpful. There are no guaranteed test cases at these lengths.
Some solutions will reject a string of 100 characters, yet still pass the test cases.
Python translation added
Maybe include a Test for
n=3.166312747397789
. I've seen a solution which would output 8 as result.This comment is hidden because it contains spoiler information about the solution
Loading more items...