//: Playground - noun: a place where people can play import Cocoa var str = "Hello, playground" //这里先提及下, //Swift中的属性的定义 //属性名首字母只能是字母,下划线 //首字母后也只能是数 ...
分类:
编程语言 时间:
2016-11-20 13:53:33
阅读次数:
203
//: Playground - noun: a place where people can play import Cocoa //基本的函数 //*******************************************无参无返回值的函数 func first(){ print(" ...
分类:
编程语言 时间:
2016-11-20 13:34:57
阅读次数:
180
Given a binary tree, flatten it to a linked list in-place. (Medium) For example,Given The flattened tree should look like: 分析: 将树的问题和链表插入问题结合。对于每个节点,寻 ...
分类:
其他好文 时间:
2016-11-17 00:32:47
阅读次数:
230
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2- ...
分类:
其他好文 时间:
2016-11-16 20:18:53
阅读次数:
194
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For ...
分类:
编程语言 时间:
2016-11-16 11:33:54
阅读次数:
221
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" let individualScores = [75, 43, 103, 87, 12]; var team ...
分类:
编程语言 时间:
2016-11-16 02:55:49
阅读次数:
277
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" func greet(name: String, day: String) ->String { retur ...
分类:
编程语言 时间:
2016-11-16 02:41:34
阅读次数:
185
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" //var 声明变量 很像JavaScript var myVariable = 42; myVariabl ...
分类:
编程语言 时间:
2016-11-16 02:22:05
阅读次数:
302
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For ...
分类:
其他好文 时间:
2016-11-10 09:53:26
阅读次数:
224
Christina非常的认真负责,她的发音特别标准, 她很有耐心,一直鼓励我多说一些,并及时纠正了我的错误。之后还给了我一些特别有用的建议。Christina老师超级nice,你说错的地方都会给你改正过来,并且对于一些表达,她还会给我拓展好多相关的地道表达,遇到我发不准的音,比如,place, th ...
分类:
其他好文 时间:
2016-11-09 19:25:35
阅读次数:
300