Stack Implementation in swift


   

Advertisements

Queue implementation in swift


public struct Queue<T>{     private var array:[T]     public init(){         array = []     }     //MARK: isEmpty     public var isEmpty:Bool{         return array.count == 0     }     //MARK: count     public var count:Int{        ... Continue Reading →

Blog at WordPress.com.

Up ↑

%d bloggers like this: