Skip to content

Instantly share code, notes, and snippets.

//Question 1
struct Stack {
var array = [Int]()
mutating func push(_ input: Int){
array.append(input)
}
mutating func pop(_ intput:Stack)-> Int{
var value = Int()
while array.last != nil {