This file contains 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 | |
//var str = "Hello, playground" | |
//var myInts: [Int8] = [] | |
// | |
//myInts.append(9) | |
//myInts.append(3) | |
//myInts.append(5) | |
//myInts.append(7) | |
//myInts.append(1) |
This file contains 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
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>? |
This file contains 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
struct ResultsInfo: Codable { | |
//let number_of_results: Int | |
let results: [Person] | |
} | |
struct Person: Codable { | |
let name: String | |
let num: Int | |
let images: ImageWrapper? | |
} |
This file contains 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
for _ in arr { | |
let a = "thing" | |
let b = 43 | |
} |
This file contains 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
for thing in arr { | |
//do thing | |
let a = 4 | |
let b = "ds" | |
} |
This file contains 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
var movies: [[String:Any]] = [ | |
[ | |
"name": "Minions", | |
"year": 2015, | |
"genre": "animation", | |
"cast": [ | |
[ "name" :"Sandra Bullock", | |
"birth_year" : 1964, | |
"breakout_year" : 1987, | |
"breakout_role" : "Hangmen", |
This file contains 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
// | |
// AppDelegate.swift | |
// myFirstApp | |
// | |
// Created by C4Q on 9/26/17. | |
// Copyright © 2017 C4Q . All rights reserved. | |
// | |
import UIKit |
This file contains 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
let testNum: Double = 3.0 | |
let numAsInt = Int(testNum) | |
let numConvertedBackToDouble = Double(numAsInt) | |
numConvertedBackToDouble == testNum | |
var myPoint: (Double, Double) |
This file contains 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
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 |
This file contains 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
/*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 |
NewerOlder