this is not a flaw in the kata. your code fails for some cases that are generated randomly (e.g., n=228)
there are other simple solutions that do not need pow or ** (hint: squaring is nothing but simple multiplication)
seeing that you are fairly new to the site firstly, welcome!, and secondly, you can first try out problems with a difficulty of 7/8 kyu. and then as you get more familiar with the language and how the site generally works, you can move on to more
p.s., this is not a kata issue. issues are bugs in the kata's code. you can mark this as a question next time
C# restriction is not enforced properly --> 1
JS restriction is not enforced properly --> 1, 2
Python's restriction is not enforced properly --> 1, 2
sweet home Alabama!
There can be only one
great kata, viva to the author!
Please review : C++ Fork
Headers added and
sqrt/pow
functions fixed.Language: C++
Test suit missing the required header
std::vector
.The
std::sqrt
function is not disabled.Twinning!
Kata is accomplished in c++.
Oh ok. I see thank you. I'm a few months into coding but new to the site, so I didn't know test cases change. I'm going to review my code now.
This comment is hidden because it contains spoiler information about the solution
n=228
)pow
or**
(hint: squaring is nothing but simple multiplication)p.s., this is not a kata issue. issues are bugs in the kata's code. you can mark this as a question next time
EDIT:Spellings
This comment is hidden because it contains spoiler information about the solution
оно отключено тестами
Loading more items...