[Codility/Swift] lesson 2 : OddOccurrencesInArray
Task description
Notice : Write an efficient algorithm O(N), O(NlogN)
Solution
First, since the length of array A can be up to 1,000,000, I use a dictionary to solve this problem. I iterate through each element of A and append it to the dictionary...
studio-pendant.hashnode.dev1 min read