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.
langauge Swift
The test even with the given solution doesn't run and stops with an arithmetic overflow error in xcode, but passes when you put it through the attempt functionaliity of code wars.
In first case - minimum list size always should be 3 numbers. You pass 2 numbers.
In second case - You last value in array is wrong. Step should be 3. You will get right answer change 19 to 17.
It doesn't seem to work in mine:
print(Practice9().find_missing(l: [2,14]))// 6 gives 8 instead of 6
print(Practice9().find_missing(l: [2,8,11, 14, 19])) // 5 gives 9 instead of 5