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.
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