Skip to content

Instantly share code, notes, and snippets.

View benstone1's full-sized avatar

Ben Stone benstone1

View GitHub Profile
import UIKit
//var str = "Hello, playground"
//var myInts: [Int8] = []
//
//myInts.append(9)
//myInts.append(3)
//myInts.append(5)
//myInts.append(7)
//myInts.append(1)
@benstone1
benstone1 / Queue.swift
Created February 20, 2018 16:47
Queue
class LLNode<Key> {
let val: Key
var next: LLNode?
init(val: Key) {
self.val = val
}
}
struct Queue<T> {
private var head: LLNode<T>?
private var tail: LLNode<T>?
struct ResultsInfo: Codable {
//let number_of_results: Int
let results: [Person]
}
struct Person: Codable {
let name: String
let num: Int
let images: ImageWrapper?
}
for _ in arr {
let a = "thing"
let b = 43
}
for thing in arr {
//do thing
let a = 4
let b = "ds"
}
var movies: [[String:Any]] = [
[
"name": "Minions",
"year": 2015,
"genre": "animation",
"cast": [
[ "name" :"Sandra Bullock",
"birth_year" : 1964,
"breakout_year" : 1987,
"breakout_role" : "Hangmen",
//
// AppDelegate.swift
// myFirstApp
//
// Created by C4Q on 9/26/17.
// Copyright © 2017 C4Q . All rights reserved.
//
import UIKit
let testNum: Double = 3.0
let numAsInt = Int(testNum)
let numConvertedBackToDouble = Double(numAsInt)
numConvertedBackToDouble == testNum
var myPoint: (Double, Double)
var myWords = ["Hello!", "What", "is", "your", "name?", "Functions", "are", "cool!"]
var concatenateArray = function(arr){
var str = ""
for (var i = 0; i < arr.length;i++){
var currentString = arr[i]
str += currentString
str += " "
}
return "My string is: " + str
/*Friday assessment
1) Written application
-Writing ability
-Interest in tech
-General sharpness
Communicaiton skills
2) Testing/Interview
-2.5 hr long logic and math test session
-30 minute logic workshop