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.
It throws a fatalerror, as negative numbers are not in the domain of
prefix
.what if n = -3?
there are mistake in this row
func swap(_ s: String,_ n: Int) -> String {
can you write me your for in loop?
i tried many different cases, but result pretty same...a simple example,a zero example,a negetive example are passed....but anyway system shows me "exit code"
Perhaps you need to check the upper-bound of the for-in loop.
I've just finished in swift, and didn't faced any issue.
is it ok if i pass simple test, but next, when i push "attempt", system give to me exit code: 132??
look like my solution is correct. Can it be a problem in server side?