摘要: 今天学习了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) 编辑