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.
Ah ha! Yes, the verbs used by the generator were not all in present tence. Fixed, thanks!
I see. I didn't do the ruby translation, and the js seems to work fine. You seem to be a lot more useful than me at potentially fixing this. Could you suggest a way?
Hi ojundt, thanks for your message. I can't replicate the error you have. Are you sure you are not defining any global variable?
Managed to?
Yup, it worked today!
Js.
My code gives me a correct answer, but when I try it with the testcase here, I get a
"Expected: , instead got: I should have known that you would have a perfect answer for me!!!"
Which is a bit odd. Is the expected value really an empty string?
Thank you!
Thanks a lot, that's a sharp eye!!
I fixed typos as you suggest, and good catch about the input/output mismatch for the last sentence.
The title of the Kata will continue to have the British "sceptical" in honour of the place I am currently residing! ;)
Thanks Giacomo! And good to know about efficiency when concatenating strings. I was curious to know why using arrays was more efficient and I looked online. It seems that the array method uses C++ code internally that is more optimized than that for '+' concatenation, but it also seems that browsers have tried to improve their code for '+' concat more recently. Did you experience that as front-end?
Also, thanks for the Ruby, I accepted it but cannot see a python translation.
Finally, do you think I should improve the testcase (following your nice test case for ruby) and republish the kata?
Thanks!
It does have random tests! It randomly picks elements from a closed set of verbs and a closed set of objects to construct sentences.
Really, this can be a 6kyu up to a 4kyu, depending on your approach. Either ways, it was a fun and informative journey!
Can I suggest a minor rewording in the description:
"you will have to return the last digit of the nth element in the Fibonacci sequence"
istead of:
"... will have to return the nth digit of a Fibonacci sequence"
Thanks!!