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.
gumgum fruit does not taste good
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)
check if the error is from an empty list
Sorry, no errors in the tests.
This comment is hidden because it contains spoiler information about the solution