一.先说一下环境Windows 8.1 64 位注:win7 Ultimate 64 配置会出现 Android SDK manger 不能启动的问题,是因为android.bat 里调用了find_java.bat ,而find_java.bat 在win7 64 位下的调用位置有问题,楼主按照网...
分类:
移动开发 时间:
2014-07-09 18:54:21
阅读次数:
151
pwd 查看当前所在目录rm 删除指令 rmdir删除空的目录 mkdir 建立空目录touch 建立空文档或修改文档时间参数file 查看文件类型which 搜寻执行档案whereis 寻找特定档案(在数据库中)locate 寻找档案(在数据库中,可忽略大小写)find ...
分类:
系统相关 时间:
2014-07-09 18:39:59
阅读次数:
233
1、下载安装ActiveMQ服务提供者http://activemq.apache.org/2、启用ActiveMQ服务cd [activemq_install_dir]bin\activemq3、验证服务netstat -an|find "61616"4、ActiveMQ的控制台查看http://...
分类:
其他好文 时间:
2014-07-09 17:25:45
阅读次数:
259
$(document).click(function(){ $('.checkval').find('li').each(function(){ $(this).click(function(){ var checkvalue...
分类:
Web程序 时间:
2014-07-09 17:18:55
阅读次数:
282
3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El...
分类:
其他好文 时间:
2014-07-09 15:48:57
阅读次数:
223
Implement an algorithm to find the kth to last element of a singly linked list.
分类:
其他好文 时间:
2014-07-08 22:01:38
阅读次数:
209
1、错误描述
java.lang.IllegalArgumentException:Can not find a java.io.InputStream with the name [inputStream] in the invocation stack.
Check the tag specified for this action
2、错误原因
3、解决办法...
分类:
其他好文 时间:
2014-07-08 18:33:04
阅读次数:
237
TaskdescriptionAsmallfrogwantstogettotheothersideofariver.Thefrogiscurrentlylocatedatposition0,andwantstogettopositionX.Leavesfallfromatreeontothesurfaceoftheriver.Youaregivenanon-emptyzero-indexedarrayAconsistingofNintegersrepresentingthefallingleaves.A[K]..
分类:
其他好文 时间:
2014-07-08 12:08:25
阅读次数:
179
题目要求任选几个自然数,使得他们的和是n的倍数。
由鸽巢原理如果我们只选连续的数,一定能得到解。
首先预处理前缀和模n下的sum,如果发现sum[i]==sum[j] 那么(sum[j]-sum[i])%n一定为0,直接输出i+1~j就够了。
为什么一定会有解,因为sum从1~n有n个数,而模n下的数只有0~n-1,把n个数放入0~n-1个数里,怎么也会有重复,所以这种构造方法一定没问题。
...
分类:
其他好文 时间:
2014-07-08 10:47:19
阅读次数:
260
Write a function to find the longest common prefix string amongst an array of strings.
写一个函数找出字符串数组中的最长共现前缀字符串。
思路:共现,即要求数组中的所有元素的前缀中都要出现。所以所得的结果肯定是最短字符串的部分或全部或都不是,总之要以最短字符串为基准与其他字符串比较。
public Str...
分类:
其他好文 时间:
2014-07-08 10:39:49
阅读次数:
203