1 Subsets
Given a set of distinct integers, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not contain duplicate subsets.
For...
分类:
编程语言 时间:
2015-05-28 12:42:36
阅读次数:
125
解决了配置windows的NLB时,多播模式下,无跨网段访问的问题...
分类:
其他好文 时间:
2015-05-27 22:52:23
阅读次数:
511
1 Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use th...
分类:
编程语言 时间:
2015-05-26 10:46:21
阅读次数:
177
记得前阵子编译so库直接使用ndk-build搞定,今天使用却报错如下:$ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
/opt/android...
分类:
移动开发 时间:
2015-05-25 18:50:02
阅读次数:
276
Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
因为没有额外的空间,我们可以采用第一个0元素所在的行和列来保存0元素的信息。void setZeroes(vector<vector>& matrix) {...
分类:
编程语言 时间:
2015-05-25 13:08:36
阅读次数:
155
1 Sqrt(x)
Implement int sqrt(int x).Compute and return the square root of x.
因为这里都是整数,可以直接采用二分法求解int mySqrt(int x) {
if (x <= 1) return x;
int begin = 1, end =x, mid = 0;
while (begin...
分类:
编程语言 时间:
2015-05-24 13:00:28
阅读次数:
173
.Net版的三层登录敲完了,让我们把问题总结一下吧……
问题1、
想大家看见这个错误就应该能想到是在数据库连接的地方出现的。都怪我太粗心,明明应该是server,却写成了 sever。
但是为什么在写代码的时候没有报错呢?原因就是sqlconnection是一个打开sql sever的数据库连接,连接数据库...
分类:
Web程序 时间:
2015-05-23 17:02:56
阅读次数:
139
1 Unique Paths
A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying t...
分类:
编程语言 时间:
2015-05-23 11:32:57
阅读次数:
234
1、jpa建pojo时出现项目没法显示,是因为spring与jap的集成jar未导入。解决办法:项目右键->myeclipse->project facets->install jpa facets.2、pojo中的sequence应用原理:mysql中配置sequence表用于管理数据库表自增长。...
分类:
其他好文 时间:
2015-05-22 22:32:53
阅读次数:
163
1 Permutation Sequence
The set [1,2,3,…,n] contains a total of n! unique permutations.Given nn and kk, return the kthk^{th} permutation sequence.
使用Next Permutation循环k次可以得到序列,但leetcode上提交会出现时间超过限制。下...
分类:
编程语言 时间:
2015-05-22 13:36:24
阅读次数:
129