AMD: 是"Asynchronous Module Definition"的缩写,意思就是"异步模块定义"。它采用异步方式加载模块,模块的加载不影响它后面语句的运行。所有依赖这个模块的语句,都定义在一个回调函数中,等到加载完成之后,这个回调函数才会运行。 AMD也采用require()语句加载模块 ...
分类:
其他好文 时间:
2017-06-17 19:33:31
阅读次数:
171
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), r ...
分类:
其他好文 时间:
2017-06-17 17:01:19
阅读次数:
164
Brackets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 3951 Accepted: 2078 Description We give the following inductive definition of a “r ...
分类:
其他好文 时间:
2017-06-17 13:47:38
阅读次数:
222
属性: 1.Attributes 存储节点的属性列表(只读) 2.childNodes 存储节点的子节点列表(只读) 3.dataType 返回此节点的数据类型 4.Definition 以DTD或XML模式给出的节点的定义(只读) 5.Doctype 指定文档类型节点(只读) 6.document ...
分类:
编程语言 时间:
2017-06-17 00:19:44
阅读次数:
278
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2017-06-16 21:11:17
阅读次数:
157
序列化是一种将Java对象从JVM中导出的简单方法,序列化可以写入网络,磁盘等 方式1.用ObjectInputStream和ObjectOutPutStream,写入,读出某些对象 2.XML 通过XSD(XML Scheam Definition)可以在XML中定义对象,Java的库JAXB可以 ...
分类:
其他好文 时间:
2017-06-16 10:12:45
阅读次数:
94
Description Given a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, undir ...
分类:
其他好文 时间:
2017-06-13 14:38:39
阅读次数:
185
Titanic Data Science Solutions¶ https://www.kaggle.com/startupsci/titanic-data-science-solutions 数据挖掘竞赛七个步骤:¶ Question or problem definition. Acquire ...
分类:
系统相关 时间:
2017-06-12 23:52:50
阅读次数:
598
sql语句四种类型: 数据定义语言(DDL) 数据操作语言(DML) 数据控制语言(DCL) 事务控制语言(TCL) Data Definition Language(DDL) DDL使我们有能力创建或删除表格。也可以定义索引(键),规定表之间的链接,以及施加表间的约束。 CREATE DATABA ...
分类:
数据库 时间:
2017-06-10 17:03:18
阅读次数:
226
题目描写叙述: 给定一个链表,要求将这个链表进行翻转。 时间O(n),空间O(1) 解题思路: 设定三个指针,temp。 prev,head,从头到尾依次翻转。 head代表当前节点,prev代表前一个节点,temp代表下一个节点。 參考代码: /** * Definition of ListNod ...
分类:
其他好文 时间:
2017-06-07 14:32:33
阅读次数:
170