一次过 1 public class Solution { 2 public String
countAndSay(int n) { 3 if (n <= 0) return ""; 4 int i = 1; 5 String current
...
分类:
其他好文 时间:
2014-05-16 21:27:59
阅读次数:
267
Given a collection of intervals, merge all
overlapping intervals.For
example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[15,18].public class
S...
分类:
其他好文 时间:
2014-05-16 08:44:29
阅读次数:
276
Function waitFn = new Function() {@Overridepublic
Boolean apply(WebDriver driver) { Point newPos =
page.getWDGAttrDetail().getLocation(); return newPo...
分类:
其他好文 时间:
2014-05-16 07:42:46
阅读次数:
259
首先贴一段代码:package xiao;import
java.util.Scanner;class CashSuper{ private int num; private double price; public
int getNum() { return num; } public void....
分类:
其他好文 时间:
2014-05-16 07:03:31
阅读次数:
314
首先说下考勤项目1、由于在手持机上面运行,所以需要屏蔽按键esc跟return,跟往常一样写了一个PreTranslateMessage函数,
然后if((pMsg->wParam == VK_ESCAPE || pMsg->wPram == VK_RETURN))
这样设置之后出现了一个问题了,....
分类:
其他好文 时间:
2014-05-16 06:12:34
阅读次数:
271
题目: Given an input string, reverse the string word
by word. For example, Given s = "the sky is blue", return "blue is sky
the".解题思路: 1、先对字符串进行一次总...
分类:
其他好文 时间:
2014-05-16 05:44:30
阅读次数:
263
题目: Given a linked list, return the node where the
cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it
without using extr...
分类:
其他好文 时间:
2014-05-16 04:50:13
阅读次数:
329
在学习Stl的过程中,经常看到->符号的重载,但一直不太明白。
今天做了一个小测试,来看看如果调用它。 以list的迭代器为例,在 pointer operator->() const { return
&(operator*());}中加入 cout str_list; str_list.push...
分类:
其他好文 时间:
2014-05-14 10:32:52
阅读次数:
221
辗转相除,又名欧几里德算法(Euclidean
algorithm)乃求两个正整数之最大公约数的算法。此处用函数的递归调用编写了一个小程序:int gcd(int a,int b){ if(a%b==0)
return b; else return gcd(b,a%b)...
分类:
其他好文 时间:
2014-05-14 10:20:27
阅读次数:
241
class base64{ /** * 加密字符串 * @access static * @param
string $data 字符串 * @param string $key 加密key * @return string */ publ...
分类:
Web程序 时间:
2014-05-14 10:18:23
阅读次数:
333