来源:https://leetcode.com/problems/balanced-binary-tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced bin ...
分类:
其他好文 时间:
2017-09-16 23:17:13
阅读次数:
205
Binary trees are defined recursively. A binary tree T is a structure defined on a finite set of nodes that either contains no nodes, or is composed of ...
分类:
其他好文 时间:
2017-09-16 17:21:08
阅读次数:
225
cmake是个很好的编译工具,自己写makefile这个太麻烦,不可取 ...
分类:
其他好文 时间:
2017-09-16 11:48:13
阅读次数:
218
1.1还原使用mysqldump命令备份的数据库的语法如下: mysql -u root -p [dbname] < backup.sq 示例: 1.2还原直接复制目录的备份 通过这种方式还原时,必须保证两个MySQL数据库的版本号是相同的。MyISAM类型的表有效,对于InnoDB类型的表不可用, ...
分类:
数据库 时间:
2017-09-16 11:39:06
阅读次数:
220
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2017-09-15 18:57:16
阅读次数:
116
(这里可以看到 Collections.sort()是基于Arrays.sort()实现的 ) Array.sort() TimSort.sort() ...
分类:
编程语言 时间:
2017-09-15 16:46:01
阅读次数:
227
The diameter of a tree (sometimes called the width) is the number of nodes on the longest path between two leaves in the tree. The diagram below shows ...
分类:
其他好文 时间:
2017-09-15 10:09:43
阅读次数:
147
1、form-data: 就是http请求中的multipart/form-data,它会将表单的数据处理为一条消息,以标签为单元,用分隔符分开。既可以上传键值对,也可以上传文件。当上传的字段是文件时,会有Content-Type来说明文件类型;content-disposition,用来说明字段的 ...
分类:
Web程序 时间:
2017-09-14 23:39:09
阅读次数:
192
A rooted binary tree is a tree with a root node in which every node has at most two children. Your task is to write a program which reads a rooted bin ...
分类:
其他好文 时间:
2017-09-14 21:51:07
阅读次数:
243
(一):创建表 它们分别代表的意思是: PK:primary key 主键 NN:not null 非空 UQ:unique 唯一索引 BIN:binary 二进制数据(比text更大) UN:unsigned 无符号(非负数) ZF:zero fill 填充0 例如字段内容是1 int(4), 则 ...
分类:
数据库 时间:
2017-09-14 21:48:06
阅读次数:
178