码迷,mamicode.com
首页 >  
搜索关键字:definition)    ( 2735个结果
LeetCode--Combination Sum
一开始的思路是:中序遍历+判断遍历后的数组,时间空间都不是最优果然超时了 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * ...
分类:其他好文   时间:2014-09-04 23:35:50    阅读次数:393
LeetCode--Balanced Binary Tree
递归 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode...
分类:其他好文   时间:2014-09-04 22:16:00    阅读次数:228
LeetCode--Merge Two Sorted Lists
重新写了下,代码看着清爽多了 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x...
分类:其他好文   时间:2014-09-04 20:54:00    阅读次数:162
【LeetCode】Copy List with Random Pointer 解题报告
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. /** * Definition for singly-lin...
分类:其他好文   时间:2014-09-04 19:12:40    阅读次数:201
用eclipse建立servlet工程
1.打开eclipse,选择【文件】|【新建】|【项目】2.选择【Tomcat Project】后单击下一步,输入项目名【TestTomcat】,选择下一步,将【Can update context definition】打钩,点击完成。3.创建servlet类:在导航器中右击【TestTomcat...
分类:系统相关   时间:2014-09-03 16:19:06    阅读次数:365
SQL的四种语言:DDL、DML、DCL、TCL
1. DDL(Data Definition Language) 数据库定义语言statements are used to define the database structure or schema。用于定义数据库的三级结构,包括外模式、概念模式、内模式及其相互之间的映像,定义数据的完整性、安全控制等约束。DDL不需要commit。 DDL的操作包含: CREATE...
分类:数据库   时间:2014-09-03 11:23:46    阅读次数:226
Linux -- groupmod
GROUPMOD(8) 系统管理命令 GROUPMOD(8)名称 groupmod - modify a group definition on the system大纲 groupmod [选项] GROUP描述 The groupmod command modifies the definiti...
分类:系统相关   时间:2014-09-03 00:18:26    阅读次数:590
linux FILE 类型.
stdio.h 头文件中,有以下内容(用内部行号解释): 1 /* The opaque type of streams. This is the definition used elsewhere. */ 2 46 typedef struct _IO_FILE FILE; 3 ... ...
分类:系统相关   时间:2014-09-02 12:15:24    阅读次数:280
Maximum Depth of Binary Tree
问题描述 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 解决方案 /** * Definition fo...
分类:其他好文   时间:2014-09-02 00:26:44    阅读次数:217
[LeetCode] Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for binary tree * public class TreeN...
分类:其他好文   时间:2014-08-30 01:10:48    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!