LeetCode: Sum Root to Leaf NumbersGiven a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is t...
分类:
其他好文 时间:
2014-08-24 20:41:33
阅读次数:
175
题目描述:
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is 15. The median of two sequences is defined to be...
分类:
其他好文 时间:
2014-08-24 19:24:22
阅读次数:
235
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers....
分类:
其他好文 时间:
2014-08-24 19:14:43
阅读次数:
211
problem A#includeint a[500]={0};//素数大表 int main(){ int number; int anumber=0; int i=0; int flag=0; while(scanf("%d",&number)!=EOF) { if(anumber==0) .....
分类:
其他好文 时间:
2014-08-24 19:12:03
阅读次数:
162
可见性:
我们希望确保一个线程修改了对象的状态后,其他线程能够看到发生的状态变化。
例:在没有同步的情况下共享变量
public class NoVisibility {
private static boolean ready;
private static int number;
public static class Rea...
分类:
编程语言 时间:
2014-08-24 15:31:02
阅读次数:
190
使用mybatis的generator自动生成代码,但是oracle数据库中number(6,2)总是自动转成BigDecimal,我想要转成的是float类型
这样就写了一个类型转换器,需要继承JavaTypeResolver接口
然后在mybaties配置文件generatorConfig.xml中类型转换配置位置添加上即可
类型转换器MyJavaTypeRe...
分类:
其他好文 时间:
2014-08-24 11:43:12
阅读次数:
215
Network of Schools
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 11180
Accepted: 4448
Description
A number of schools are connected to a computer netwo...
分类:
Web程序 时间:
2014-08-24 09:10:22
阅读次数:
309
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-23 18:53:01
阅读次数:
180
ExtJS学习-----------Ext.Object,ExtJS对javascript中的Number的扩展...
分类:
编程语言 时间:
2014-08-23 17:48:31
阅读次数:
287
命令处理区加入
int Look_File(pCommand b)
{
int _out_style = 1;
int _line_number = 1;
int _len_argu = strlen(b->Cmd_Arguments);
while (--_len_argu >= 0)
{
switch (b->Cmd_Arguments[_len_argu])
{
ca...
分类:
其他好文 时间:
2014-08-23 17:45:41
阅读次数:
192