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.
The problem statement does not clearly specify that all digits must be used and that the expression cannot start with a minus sign.
Right now, this case causes confusion:
{
'+1+2+3-4+5+6+78+9',
'+1+2+34-5+67-8+9',
'+1+23-4+5+6+78-9',
'+1+23-4+56+7+8+9',
'+12+3+4+5-6-7+89',
'+12+3-4+5+67+8+9',
'+12-3-4+5-6+7+89',
'+123+4-5+67-89',
'+123+45-67+8-9',
'+123-4-5-6-7+8-9',
'+123-45-67+89',
'-1+2-3+4+5+6+78+9' // <- unclear if this should be allowed
}
expected 12 to equal 11
Suggested clarification
Please explicitly state that:
All digits must be used in the given order
The equation cannot begin with -
This avoids ambiguity and ensures consistent solutions.
js fork approved
If I'm not mistaken :
Specs of the python tests are slightly different from the original language: the random tests generate words without any vowel.
All languages should be aligned:
Approved.
Approved.
Lua translation with merge conflicts resolved (author is inactive), can be approved.
Muito bom!
Added after the translation rework was approved.
Done.
Lua translation !
I was wondering what was expected in the case of a word only composed of consonants. Should it just stay the same ? Or should it stay the same and have a
ayappended (which seems to be what's currently expected) ? I think it's worth mentionning in the description.approved, if you want to make some more changes, suggest a new fork
approved
JS translation rework kumited (author is inactive)
Loading more items...