/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solu... ...
分类:
其他好文 时间:
2017-11-27 23:40:21
阅读次数:
138
'''You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9Output: [1, 3, 9]'''# Definition for a binary t... ...
分类:
编程语言 时间:
2017-11-27 20:05:52
阅读次数:
188
Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha ...
分类:
其他好文 时间:
2017-11-23 19:33:35
阅读次数:
153
597. 具有最大平均数的子树 1 /** 2 * Definition of TreeNode: 3 * public class TreeNode { 4 * public int val; 5 * public TreeNode left, right; 6 * public TreeNode ...
分类:
其他好文 时间:
2017-11-23 10:57:15
阅读次数:
146
题目链接:http://poj.org/problem?id=2955 Time Limit: 1000MS Memory Limit: 65536K Description We give the following inductive definition of a “regular brack ...
分类:
其他好文 时间:
2017-11-21 22:07:25
阅读次数:
169
SQL SQL:结构化查询语言,分为以下几个部分。 ·数据定义语言(Data-Definition Language, DDL):SQL DDL提供定义定义关系模式、删除关系以及修改关系模式的命令。 ·数据操纵语言(Data-Manipulation Language, DML):SQL DML包括 ...
分类:
数据库 时间:
2017-11-18 14:57:07
阅读次数:
198
编辑ckeditor目录下的的config.js文件,默认的是下面的工具栏代码, (特别说明:config.js中没有下面的代码,默认就是显示全部按钮,但如果对工具栏进行自定义,最好的办法还是把下面的代码全部复制到config.js,然后再删除一个个不需要的按钮) 下面是经删除过后的工具条代码 So ...
分类:
其他好文 时间:
2017-11-17 13:34:40
阅读次数:
163
出错代码: string dec = Marshal.PtrToStringAnsi(audioOutput.psz_description);//输出 鎵0鍣?(Realtek High Definition Audio) 原因: 查看内存后知道内存编码是UTF8,Marshal不支持UTF转换 ...
分类:
其他好文 时间:
2017-11-16 18:37:34
阅读次数:
442
链接 "637. Average of Levels in Binary Tree" 题意 给定非空二叉树,求出每一层数的平均值 思路 利用队列存储每一层的数,存完之后需要取出size,再循环求平均值。这样保证了循环的次数就是每一层的结点数。 代码 Java / Definition for a b ...
分类:
其他好文 时间:
2017-11-14 17:13:00
阅读次数:
151
oracle数据库语言类型一般分为五大类型 1 DDL(data definition language)数据定义语言 CREATE TABLE :创建表 ALTER TABLE :修改表 DROP TABLE:删除表(对表整体删除,表结构也不存在了) TRUNCATE TABLE :删除表(删除所 ...
分类:
数据库 时间:
2017-11-14 14:19:41
阅读次数:
228