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.
Please HELP, check the @verdugo's issue* below. There is a problem in Swift version of this question.
Best
No, You shouldn't my friend! This is a serious mistake for the Swift example. Example designed as a non-optional, but the Test case was written with an optional scenario. So, must be one or another, not both.
*** PLEASE, URGENT HELP ***
Everything depends on this question on earth right now!
Note: I was planning to listen to the "Rihanna - Diamonds" but now I'm listening to the "The Cardigans - Nil" song.
Thank you for your comment. I updated with the easy solution after thinking mathematically. And it worked like a charm.
Best.
I passed the Test, but when I attempt my answer I got an error:
main.swift:32:11: warning: variable 'randomStreet' was never mutated; consider changing to 'let' constant
var randomStreet: Int = 0
~~~ ^
let
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file test/solution.swift, line 18
This code not in the test cases. So I can't send my correct answer to the site.