Skip to content

Instantly share code, notes, and snippets.

View creativeportfolio-ios's full-sized avatar

NICK creativeportfolio-ios

View GitHub Profile
@creativeportfolio-ios
creativeportfolio-ios / Answer1.swift
Last active December 31, 2019 10:15
Oursky Developer Pre-Test
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{
I am working on gistdemo project.