This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| extension Array where Element: Hashable { | |
| /** | |
| In swift, An Set array to determine each item available, so the time complexity is O(n) And find an item in an second array so time complexity is O(m) and equal operation is all constant, so they are O(m^n) | |
| Time Complexity: O(m^n) | |
| */ | |
| func isSubset(to: [Element]) -> Bool{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I am working on gistdemo project. |