LeetCode: CombinationsGiven two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solu...
分类:
其他好文 时间:
2014-09-04 22:03:20
阅读次数:
221
输入结果 00000000000567 String bala="567"; 固定长度是14位,怎么循环在bala前面填充00000000000System.out.println("---www.yq1012.com--------");String bala = "567"; ...
分类:
编程语言 时间:
2014-09-04 18:40:49
阅读次数:
166
System.out.println(""+ 1/2);得不到0.5,只能得到0.要想打印出浮点数,必须除数和被除数至少有一个是浮点数,像这样:System.out.println(""+ 1/2.0);就可以了。
分类:
编程语言 时间:
2014-09-04 18:19:29
阅读次数:
149
今天在导出一个模式的时候,约140GB,出现如下错误:
UDE-00008: operation generated ORACLE error 31626
ORA-31626: job does not exist
ORA-06512: at "SYS.KUPC$QUE_INT", line 536
ORA-25254: time-out in LISTEN while waiting...
分类:
其他好文 时间:
2014-09-04 14:58:09
阅读次数:
337
package nyoj;import java.util.Scanner;public class Main { public static void main(String args[]) { //System.out.println(Integer.MAX_VALUE...
分类:
其他好文 时间:
2014-09-04 14:36:49
阅读次数:
187
1.tp driver的tpd_down()和tpd_up()函数中不需要上报id号,上层会自动进行匹配;
2.tpd_up()函数中只需要上报BTN_TOUCH和mt_sync信息,其他信息不用上报,如下:
static void tpd_up(int x, int y,int *count)
{
input_report_key(tpd->dev, BTN_TOUCH, ...
分类:
移动开发 时间:
2014-09-04 09:47:07
阅读次数:
283
AudioMTKPolicyManager.cpp的startOutput方法中,将在newDevic获取到的后面添加:
if(stream==AudioSystem::BOOT)newDevice|=AUDIO_DEVICE_OUT_SPEAKER;
status_t AudioMTKPolicyManager::startOutput(audio_io_handle_t output...
分类:
移动开发 时间:
2014-09-04 09:46:57
阅读次数:
191
1、 放大图片:/*galleryImage css*/ a.galleryImage{ display:block;}.galleryImage img{ transition:all .4s ease-out;-webkit-transition:all .4s ease-out;}.galle...
分类:
Web程序 时间:
2014-09-04 09:35:17
阅读次数:
168
We've got a large system that's loosely bound to its data source (Navision) via Unity - we're getting the opportunity to swap it out and have our own ...
分类:
系统相关 时间:
2014-09-04 09:32:57
阅读次数:
299
公司有一台服务器起了多个tomcat,每次需要重启,查看catalina.out输出都特别麻烦,写了一个脚本,贴出来,希望有经验的前辈指点一二,脚本如下:#!/bin/shecho"请选择要操作的tomcat实例:"echo"1:tomcat"echo"2:tomcat2"echo"3:tomcat_errorQues"tomcatid=`psaux|grepjava|gr..
分类:
其他好文 时间:
2014-09-04 03:07:48
阅读次数:
210