This file contains hidden or 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
xkjhf sdwf iajudsf ds |
This file contains hidden or 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
Post 4 |
This file contains hidden or 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
Hshdbdudbdjdh |
This file contains hidden or 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
fun getTimes(times: Array<Int>, directions: Array<Int>): Array<Int> { | |
val result: Array<Int> = Array(times.size) { -1 } | |
val endTime: Int = times.max() ?: 0 | |
if (endTime == 0) return result | |
val inQueue: Queue<Int> = LinkedList() | |
val outQueue: Queue<Int> = LinkedList() | |
var currentIndex = 0 | |
var turnstile = 0 |
This file contains hidden or 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
val cristian = Persona(nombre="Cristian", apellido="Gomez") | |
val carlos = Persona(nombre="Carlos", apellido="Gomez") | |
val carmen = Persona(nombre="Carmen", apellido="Gomez") | |
val spock = Perro(nombre="Spock") | |
val familia:Familia = listOf(cristian, carlos, carmen, spock) |
This file contains hidden or 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
sealed class Integrante | |
data class Persona( | |
val nombre: String, val apellido: String | |
) : Integrante() | |
data class Perro(val nombre: String) : Integrante() | |
typealias Familia = List<Integrante> |
This file contains hidden or 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
const from = PAGE_SIZE * page | |
let accumulator = 0 | |
let assigned = 0 | |
let currentCityIndex = 0 | |
let currentCityPage = 0 | |
let pages: number[] = [] | |
let results: Listing[] = [] | |
while (assigned < PAGE_SIZE || currentCityIndex === CITIES.length - 1) { | |
const response = await axios.get( |
This file contains hidden or 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
# Crack the code, and write a function to decode | |
# any new messages you receive from mystery envelopes. | |
def puzzle(encoded_message): | |
encoded_lowercase = encoded_message.lower() | |
plaintext = '' | |
for i in range(len(encoded_lowercase)): | |
ascii = ord(encoded_lowercase[i]) | |
if ascii >= 97 and ascii<=122: |
This file contains hidden or 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 kotlin.reflect.KClass | |
fun main() { | |
start { | |
factory<Client>{ FakeClient() } | |
factory<Service>{ FakeService(get()) } | |
} | |
val service: Service by inject() | |
service.call() |
This file contains hidden or 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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
class MyViewController : UIViewController { | |
override func loadView() { | |
let view = UIView() | |
view.backgroundColor = .white |