DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write...
分类:
其他好文 时间:
2015-08-12 21:33:11
阅读次数:
113
TreeTime Limit : 6000/2000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 2Accepted Submission(s) : 2Problem DescriptionT...
分类:
其他好文 时间:
2015-08-12 21:34:18
阅读次数:
141
#include#include#include#include#includeusing namespace std;struct node{ friend bool operator Q; for(int i=1;i<=n;i++) { node k; k.ID=i; k.Time=...
分类:
其他好文 时间:
2015-08-12 21:34:46
阅读次数:
128
排列2Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5634Accepted Submission(s): 2159Problem Descrip...
分类:
其他好文 时间:
2015-08-12 21:32:07
阅读次数:
118
package com.journaldev.util;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;publ...
分类:
其他好文 时间:
2015-08-12 21:32:57
阅读次数:
123
1 import java.util.*; 2 3 public class Solution { 4 public int[] twoSum(int[] nums, int target) { 5 Map map = new HashMap(); 6 i...
分类:
其他好文 时间:
2015-08-12 21:32:25
阅读次数:
80
Given a binary tree , determine if it is height-balancedimplement method is in java language,iterator through the height rather than the depthpublic i...
分类:
其他好文 时间:
2015-08-12 21:32:32
阅读次数:
116
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the...
分类:
其他好文 时间:
2015-08-12 21:30:31
阅读次数:
106
优先级队列#include#include#include#include#includeusing namespace std;int n;int main(){ while(~scanf("%d",&n)) { int tot=0; priority_qu...
分类:
其他好文 时间:
2015-08-12 21:32:17
阅读次数:
144
DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because th...
分类:
其他好文 时间:
2015-08-12 21:30:56
阅读次数:
123
转载:http://book.51cto.com/art/201006/207275.htm《UNIX网络编程:第2版.第2卷,进程间通信》本书全面深入地讲解了各种进程间通信形式,包括消息传递、同步、共享内存及远程调用(RPC)。书中包含了大量经过优化的源代码,帮助读者加深理解。这些源代码可以从图灵...
分类:
其他好文 时间:
2015-08-12 21:28:35
阅读次数:
179
这里因为是有序的,可以利用这个有序性来进行查找left=0,right=num.length-1;while(lefttarget) right--; else return true;}return false;
分类:
其他好文 时间:
2015-08-12 21:30:14
阅读次数:
83
QT定时器只能使用在进程或线程中。 QT类中如果需要定时器,可以把定时工作安排在一个线程中执行。class aaa : public QThread{ Q_OBJECT ...protected: //重写run函数 void run();public...
分类:
其他好文 时间:
2015-08-12 21:30:21
阅读次数:
143
大体上参考链接:http://blog.csdn.net/luojinping/article/details/8788743最后注意下SegTag.java文件1 public SegTag(int segPathCount) {2 this.segPathCount = ...
分类:
其他好文 时间:
2015-08-12 21:30:42
阅读次数:
147
http://poj.org/problem?id=1273Drainage DitchesTime Limit:1000MSMemory Limit:10000KTotal Submissions:62651Accepted:24118DescriptionEvery time it rains ...
分类:
其他好文 时间:
2015-08-12 21:27:31
阅读次数:
105
最近工作不是很忙,所以就自学了一些lua的知识,但是才看了两个多小时就遇见了一个问题——闭包。好吧,我是看见它第一眼的时候以为是和close之类有关的巴拉巴拉。。。。(原谅我的无知)!但是越往下看越迷茫,所以就网上看了好多大师写的东西学习学习,特此记录一下,以便日后看到不会。。。。。被人鄙视在lua...
分类:
其他好文 时间:
2015-08-12 21:29:10
阅读次数:
107
原文地址 http://blog.sina.com.cn/s/blog_76b0cde40100t32r.html被2整除的数是偶数。被3整除的数必须各个位数上的数加起来为三的倍数,比如136,1+3+6=10不行,147=1+4+7=12,就可以。被5整除个位为0或者5.能被7整除的数的特征一个数...
分类:
其他好文 时间:
2015-08-12 21:26:59
阅读次数:
109