[Codility/Swift] lesson 3 : PermMissingElem
Task description
Notice : N is an integer within the range 0 ~ 100,000
Solution
Using a dictionary, the time complexity is O(N) .
After initializing the dictionary, find the missing element using a for loop.
import Foundation
import Glibc
// you ...
studio-pendant.hashnode.dev1 min read