https://leetcode.com/problems/perfect-squares/Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ......
分类:
其他好文 时间:
2015-11-02 15:28:38
阅读次数:
165
题目:Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exis...
分类:
其他好文 时间:
2015-11-02 13:59:31
阅读次数:
163
题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complex...
分类:
其他好文 时间:
2015-11-02 09:11:34
阅读次数:
186
Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur...
分类:
其他好文 时间:
2015-11-02 06:42:55
阅读次数:
168
1.在写我的springmvc demo时,由于要向前台返回相关信息,于是设置了@ResponseBody,但是要把对象转换成json格式,我却没有在xml文件里配置,所以报如下错误:HttpMediaTypeNotAcceptableException: Could not find accept...
分类:
编程语言 时间:
2015-11-02 00:08:38
阅读次数:
226
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-11-02 00:00:09
阅读次数:
277
期中总结一、常用命令 man -k;grep;cheat;find;locate;apt-get.二、正则表达式 ①查找匹配、检索、替换 ②+表示前面的字符必须出现至少一次(1次或多次) ?表示前面的字符最多出现一次(0次或1次) *星号代表前面的字符可以不出现,也可以出现一次或者多次...
分类:
其他好文 时间:
2015-11-01 22:48:22
阅读次数:
249
more类似cat,不过more不是将整个文件内容从上到下显示在屏幕上的,而是以一页一页的显示方便使用者逐页阅读。more最基本的指令就是space即往下翻一页,b即往回翻一页显示,而且还有搜索字符串的功能+n:从第n行开始显示-n:定义屏幕大小为n行+/pattern:在每个档案显示前搜索该字符串...
分类:
Web程序 时间:
2015-11-01 22:46:14
阅读次数:
376
期中总结一、Linux在 Linux 里面可以使用使用groups命令知道自己属于哪些用户组。在 Linux 里面可以使用使用chmod命令修改文件的权限。Linux中没有C盘,D盘,其文件系统的目录是由FHS标准规定好的。Linux Bash中,查找home目录中前天创建的文件的命令是find ~...
分类:
其他好文 时间:
2015-11-01 21:05:33
阅读次数:
268
题目:Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the ...
分类:
其他好文 时间:
2015-11-01 21:02:38
阅读次数:
195