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.
Good kata, but there is a problem with Swift unit tests and example
func swap(_ s: String, n: Int) -> String { // _ is missed before n
XCTAssertEqual(swap("the quick broWn fox leapt over the fence", 9),
"The QUicK BrowN foX LeaPT ovER thE FenCE")
Nice Kata, Thanks!
Really nice kata, but there is a problem with Swift. Some of tests fails till change return type from String to String?
Poor description and tests. Absolutely terrible
Thanks man
I see the description, but I suggested making the result of function more logical than now.
I have just one question to this kata.
Why I should return empty string if total amount is zero?
I recon this result is better than empty string.
e.g. - "(A : 0) - (B : 0) - (C : 0) - (D : 0)"