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.
Multiplying by 0 should return an empty string?
For st = zljyGr oCzpPm vdfzkgVCzr HUXAxhUnOH OTFDBwFRuZxhoHk dZpB KuPgHdDIQBfCQRaVWMg oxhtZyZMnoSD BAzXxWGYRxgLgRXwxK OeFftW hLBxNyJBnvtfvVwtZp EvsMkixFmAUSyhYHEyF
loc = 1
num = 0
Result is not what expected
Expected
:
to equal
: oCzpPm
I have a doubt, any number multiplied by zero is zero right? So why if I multiply the (n) word by zero should it return the word repeated once, like in this test:
For st = URM TablOWGQ HZPsTi IbmbWpqxYiMgoqisB u pHED NEbayRuBNKlVUNJJJ gjOnsc DTSZhHUpWekhmwXM uxSKQnTIZvZbsZRZFHDSxeo hAiTw evuqwSp hx lodhkRBkhK kZvVlR RousUDn u MxHXFibTMLcnN JsXZNzvMS VxwQGRMmjsFNVXKLZwj cCqXZyZZzkAgqCup mPunCNX uNRWDLwLQWgHVxk cCUUFqHWtVTJPeIfUu SulqDQVvVR CPPgVHfoGRG TikvQYoJGjZ q vjTZkAvPq
loc = 20
num = 0 <----------------------------------------------
Result is not what expected
Expected
:
to equal
: cCqXZyZZzkAgqCup <-----------------------
modifyMultiply ("This is a string",3,5)
An Example without a solution is not an example.
Ruby Translation
JS Node 18. (
mocha + chai
) should be enabledDescription should be language-agnostic
One of the random tests had
num = 0
. My code would return an empty string in this case, but the expected output was just printing the word once. Is this expected behavior? I don't see it specified anywhere in the instructions or example tests.If
num
== 0 random test expect get 1 copy of word, as ifnum
was 1. Kate description say nothing about itIf that's what it takes for you, then sure :)
the instructions written by a woman in leather holding a whip? wtf
Fixed. Thank you.
"1. You are to write a function that takes a string as it's first paramter. This string will be a string of words."
Should be "parameter" instead of "paramter".
"3. Once you have the located string you are finally going to multiply by it the third provided paramater, which will also be an interger. You are additionally required to add a hyphen in between each word."
Should be "parameter" instead of "paramater".
Should be "integer" instead of "interger".
"Since the 3rd word is 'string'(starting from 0 remember) and the third paramater indicates that it should be repeated 5 times."
Should be "parameter" instead of "paramater".
Thanks!
Approved by someone
Approved by someone
Loading more items...