前面的性能高使用[pscustomobject][ordered]强制类型转换[pscustomobject][ordered]@{Name= 'Boe'Number = 1ID = 007}使用[pscustomobject]强制类型转换[pscustomobject]@{Name= 'Boe'N...
分类:
其他好文 时间:
2014-06-28 10:40:14
阅读次数:
166
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-06-26 00:29:49
阅读次数:
168
静态工厂方法与设计模式中的工厂方法模式不同,和设计模式中的工厂方法模式不直接对应。
使用静态工厂方法比构造器的优势:
第一、静态工厂方法是有名称的,而构造器是通过参数判断的。
每个静态工厂方法都有自己的名字,可以根据名称就可以判断它要做什么事情,而构造器是做不到的。
如:构造器BigInteger(int,int),返回BigInteger可以是素数,偶数等,而用名称Big...
分类:
其他好文 时间:
2014-06-22 19:03:32
阅读次数:
213
Description
Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:
q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses...
分类:
其他好文 时间:
2014-06-22 14:06:49
阅读次数:
249
3000: Big Number
Time Limit: 2 Sec Memory Limit: 128 MB
Submit: 220 Solved: 62
[Submit][Status]
Description
给你两个整数N和K,要求你输出N!的K进制的位数。
Input
有多组输入数据,每组输入数据各一行,每行两个数——N,K
Output
...
分类:
其他好文 时间:
2014-06-22 11:29:28
阅读次数:
258
题目:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find...
分类:
其他好文 时间:
2014-06-22 08:30:24
阅读次数:
236
题目链接:点击打开链接
= = 990+ms卡过
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 100010
#define L(x) (x<<1)
#define R(x) (x<<1|1)
#define ll int
ll n,m,k,a,b;
ll x[N];
b...
分类:
其他好文 时间:
2014-06-22 08:16:57
阅读次数:
208
Write a function for retrieving the total number of substring palindromes.
For example the input is 'abba' then the possible palindromes= a, b, b, a, bb, abba
So the result is 6.
Updated at 11...
分类:
其他好文 时间:
2014-06-21 23:59:42
阅读次数:
422
修改MyEclipse行数的颜色
1、未修改前,行数的颜色
2、依次选择“Window--->Preferences”
3、选择“General--->Editors--->Text Editors--->Line number foreground”
4、单击“Color”弹出框,选择“基本颜色”,然后单击“确定”
...
分类:
系统相关 时间:
2014-06-21 22:57:24
阅读次数:
361