Why are you nervous? Don't be nervous. There is no need to be nervous. When people are nervous, they make mistakes. And we do not want anyone to make mistakes, do we? So there is no reason to be nervous <smile emoji><wink emoji>.
For a first attempt, the translation is very good. Good job!
The translation is not bad, but nonetheless has some problems:
math.random(0, 10) ^ math.random(1, 20) is not the best way to generate random inputs:
it produces many zeros and ones (the base could be randomized from range 2..10)
it produces floats and not integers
it can create numbers which overflow max precise float value, because 10^20 will be an imprecise float and not an int.
Test titles could be slightly improved by changing "Basic: " .. key to "Basic: n=" .. key or somethign similar, and remaining titles in similar manner.
Greetings! I made the 'coolest' fork of the Kata translation to Lua. I'm not sure if I should post this here, but I followed the example of user 4500zenja1.
The tests are probably still very wrong though. It's somewhat implied that the input should be well formed and it's suggested that there are going to be uppercase characters which there isn't
O que significa palavra capitalizada?
This comment is hidden because it contains spoiler information about the solution
Approved.
Approved.
Your code should return the result instead of printing it. Mark your post as having spoiler content next time, please.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please check Lua translation.
Approved.
Why are you nervous? Don't be nervous. There is no need to be nervous. When people are nervous, they make mistakes. And we do not want anyone to make mistakes, do we? So there is no reason to be nervous
<smile emoji>
<wink emoji>
.For a first attempt, the translation is very good. Good job!
I made adjustments in accordance with your comments. I'm sorry, this is my first translation, and I am nervous and making silly mistakes.
The translation is not bad, but nonetheless has some problems:
math.random(0, 10) ^ math.random(1, 20)
is not the best way to generate random inputs:10^20
will be an imprecise float and not an int."Basic: " .. key
to"Basic: n=" .. key
or somethign similar, and remaining titles in similar manner.Greetings! I made the 'coolest' fork of the Kata translation to Lua. I'm not sure if I should post this here, but I followed the example of user 4500zenja1.
lua:
The tests are probably still very wrong though. It's somewhat implied that the input should be well formed and it's suggested that there are going to be uppercase characters which there isn't
Loading more items...