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.
I used print instead of return,it solved.just use return :) <3
it's buggy,my output is same as the answer but it shows faild
even I changed type of output to list or string,it steel feedback an faild
Merged
This fork should fixes the issue.
The random tests in Lua have multiple missing and repeated numbers.
First of all, reading unformatted code is really difficult. You really need to use code formatting when showing solution.
The next thing is, your problem is when missing num is 100. Try this assertion and see:
test.assert_equals(missing_no(list(range(100))), 100)
This comment is hidden because it contains spoiler information about the solution
It is difficult to find problems in your solution without knowing what your solution is.
If the solution I see is your most recent one, it seems that indeed, it does not handle the case when the missing number is 100. I think you did some mistake when checking what input fails.
Anyway, your solution is buggy, it is not a kata issue.
could you check the mix test solution , i have gotten the test passed but it also says 'none should == 100'(the answer was correct(28)and 100 was not absent i check manually)
done
Lua translation !
Perhaps I thought the range of answers would be 1 to 100 inclusive. I can't exactly remember. Thanks.
Can you advise which language doesn't uses the
0
to100
inclusive range?"0 to 100 inclusively" => "1 to 100 inclusively"
Loading more items...