Ad
  • Default User Avatar

    I have the same issue with "4, 20, 0" test and maybe is because the "truncatingRemainder" of Swift

  • Default User Avatar

    I tried several solutions, all worked fine: nothing brken.

  • Custom User Avatar

    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?

  • Custom User Avatar

    It is because suggested tests have ommited label names. You need to use function signature: func race(_ v1: Int, _ v2: Int, _ g: Int) -> [Int]?.