The topic on Generics is quite tough for me.
I am tackling the gold challenge but so far no luck yet.
The hint is quite confusing to me “You will need to change the return type from [Int] to an array of an associated type of the Collection protocol”. Can anyone explain on this?
I don’t know what to do with Set as it does not have a defined ordering. How to get the location of a item in a set?
Any guidance on this challenge is much appreciated.