摘要: 今天学习了Swift语言的以下内容(目录形式) 0.4. 面相对象 0.4.1. 构造函数基础 0.4.2. 重载构造函数 0.4.3. KVC 构造函数 0.4.4. 便利构造函数 0.4.5. 懒加载 0.4.6. 只读属性 0.5. 网络访问 0.6. 项目演练 0.6.1. 准备工作 0.6 阅读全文
posted @ 2016-02-27 00:43 torrescx 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2016-02-27 00:40 torrescx 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1、树的形式化定义: 树(Tree)是由一个或多个结点组成的有限集合T,其中有一个特定的称为根的结点;其余结点可分为m(m≥0)个互不相交的有限集T1,T2,T3 ,…,Tm,每一个集合本身又是一棵树,且称为根的子树。 2、有关树的基本术语: 1.结点(Node):树中的元素,包含数据项及若干指向其 阅读全文
posted @ 2016-02-27 00:14 torrescx 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 今天学习了Swift语言的以下内容(目录形式) 0.3. 函数 0.3.1. 函数 0.3.2. 闭包 0.3.2.1. 闭包的定义 0.3.2.2. 基本使用 0.3.2.3. 循环引用 阅读全文
posted @ 2016-02-26 00:13 torrescx 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 今天学习了Swift语言的以下内容(目录形式),非常喜欢这种语言,简洁,安全 Swift简介 0.1快速体验 0.1.1.playground 0.1.2.项目开发体验 0.2基本语法 0.2.1常量和变量 0.2.2.Optional 0.2.3.控制流 0.2.4.循环 0.2.5.字符串 0. 阅读全文
posted @ 2016-02-25 00:55 torrescx 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、建立项目,并托管到git上 2、设置最低支持版本8.1 3、设置app icon 3、设置launch image tips: 1、command+shift+h 在模拟器上回到首页 2、在info.plist的 Bundle Name可更改app显示名称,一般不超过6个字符 3、launch 阅读全文
posted @ 2016-02-24 11:47 torrescx 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2016-02-24 11:13 torrescx 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
posted @ 2016-02-23 01:49 torrescx 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2016-02-21 22:55 torrescx 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex 阅读全文
posted @ 2016-02-20 20:57 torrescx 阅读(514) 评论(0) 推荐(0) 编辑