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.
subtle one
I edited the C++ test and clamped the value so that it's now less than
10000000
.Speaking of which, the test ranges for the random tests in different languages are all over the place. Some are
1-50
, then you have this.And still, the year after the issue is reported, the test engine of the site is not fixed, any you basically cannot earn points from this kata. Nice job guys.
Looks like the translation is already approved.
(deleted duplicate)
You are right.
The maximal value of an
unsigned int
on this machine is4294967295
. The next value forn=1804289383
is3*n+1 == 5412868150
which overflows and leaves1117900854
.The tests should not use numbers whose Collatz sequences contain members greater than
std::numeric_limits<unsigned int>::max()
, but I don't know how to compute such a limit.A first fix would be to limit the input numbers to a maximum of
1431655764
(== (std::numeric_limits<unsigned int>::max() - 1) / 3
).Hi
NickolasII
,i have fixed the tests. Can you try to submit your solution once again? Thanks!
Same issue with c++
Expected: [ -7.33, 48.67, -41.33 ]
Actual: [ -7.33, 48.67, -41.33 ]
You can print the parameters at the beginning to see what the test cases are (through the log).
Could you tell me in which language this error occours, please?
Also, please upvote if you liked the kata.
I guess the phrase 'smallest integer' implies that the vector has to be sorted in ascending order. Also, the kata description clearly states that only unique elements are to be considered.
Hi, @stasfrid has reported a Minor issue in C++ Test Cases (See Above). It goes like -
Post down below, under the c++ translator post :)
Exactly same issue with me. :-(
Loading more items...