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 have the same issue with "4, 20, 0" test and maybe is because the "truncatingRemainder" of Swift
I tried several solutions, all worked fine: nothing brken.
My solution can't pass only one test:
XCTAssertTrue failed - should return [4, 20, 0]
. As initial signature of solution is broken I can suggest that one test might have an issue. Can we somehow verify it?It is because suggested tests have ommited label names. You need to use function signature:
func race(_ v1: Int, _ v2: Int, _ g: Int) -> [Int]?
.