简单的说,视图是按照你的sql语句生成的一个虚拟的东西,本身并不占数据库空间譬如有这个表create table table_a (id int,name varchar(10))然后有这么一个视图create view view_a as select id from table_a当你表里的数据 ...
分类:
其他好文 时间:
2016-09-11 07:55:46
阅读次数:
163
Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [3,2,1]. Note: Recursive sol ...
分类:
其他好文 时间:
2016-09-11 07:54:03
阅读次数:
149
Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive solu ...
分类:
其他好文 时间:
2016-09-11 06:51:27
阅读次数:
201
Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" path = "/a/./b/. ...
分类:
其他好文 时间:
2016-09-11 06:52:16
阅读次数:
159
Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree [1,null,2,3], 1 \ 2 / 3 return [1,3,2]. Note: Re ...
分类:
其他好文 时间:
2016-09-11 06:51:55
阅读次数:
135
Invert a binary tree. to ...
分类:
其他好文 时间:
2016-09-11 06:49:04
阅读次数:
153
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2016-09-11 06:48:43
阅读次数:
146
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - ...
分类:
其他好文 时间:
2016-09-11 06:51:34
阅读次数:
125
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e ...
分类:
其他好文 时间:
2016-09-11 06:51:35
阅读次数:
151
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv ...
分类:
其他好文 时间:
2016-09-11 06:49:06
阅读次数:
185
1. 界面介绍 (1)初始界面选项介绍 (2)如何使用匹配 (3)如何使用正则替换 (4)如何使用Debug 2. 安装介绍 安装步骤比较简单,如下3图所示: (1)开始安装 (2)同意协议 (3)安装成功界面 ...
分类:
其他好文 时间:
2016-09-11 06:49:33
阅读次数:
194
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (size tha ...
分类:
其他好文 时间:
2016-09-11 06:50:19
阅读次数:
156
大四期间快毕业了,同学们张罗旗鼓的准备就业方向,大学给人带来很多经历。有人说,大学是个微型社会,里面充满各种复杂的事情。有人说,大学是美丽而羞涩的梦,难以追求,望而却步。有人说,大学是放飞梦想的舞台,找到了展示自己能力的开端。而我说,大学仅仅只是一个起点。 2016年9月5日,我大四开学了,同学们也 ...
分类:
其他好文 时间:
2016-09-11 06:48:40
阅读次数:
175
中央仓库就是Maven的一个默认的远程仓库,Maven的安装文件中自带了中央仓库的配置($M2_HOME/lib/maven-model-builder.jar) 在很多情况下,默认的中央仓库无法满足项目的需求,可能项目需要的构件存在另一个远程仓库中,这是就可以在pom.xml中配置仓库,代码如下: ...
分类:
其他好文 时间:
2016-09-11 06:50:01
阅读次数:
123
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Solution1: 这道题做的太麻烦了,corner case很多,碰到负数不知道怎么给reverse。强行转成st ...
分类:
其他好文 时间:
2016-09-11 06:47:57
阅读次数:
130
单元测试 单元测试是针对软件的最小模块进行正确性检验的测试工作。所谓最小模块,在OOP的范畴内,通常是指对象的方法。 单元测试是程序员的一项基本职责和基本技能,直接影响到程序员的工作效率和软件的质量, 也直接影响到团队的合作。试想以下的情形: 某程序员提交了一段未经测试的代码,另外一个程序员chec ...
分类:
其他好文 时间:
2016-09-11 06:48:36
阅读次数:
154
train.c linear.h ...
分类:
其他好文 时间:
2016-09-11 06:46:50
阅读次数:
460