Find a maximum sum of a compact subsequence of array elements and any double slice.
分类:
其他好文 时间:
2014-07-06 20:44:45
阅读次数:
351
Given a log of stock prices compute the maximum possible earning.
分类:
其他好文 时间:
2014-07-06 20:04:21
阅读次数:
259
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-07-06 19:31:04
阅读次数:
181
学习书籍 Javascript高级程序设计 第3,4章 javascript数据类型 Undefined(undefined) Null(null,空指针) Boolean(true,false) Number(NaN 非数字) String Object(Array…) 函数(通过函数自带对象Ar...
分类:
编程语言 时间:
2014-07-06 18:43:57
阅读次数:
184
Help Me Escape
Time Limit: 2 Seconds
Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他好文 时间:
2014-07-05 11:05:59
阅读次数:
220
??
新增和更新价目表行
--目的:在已有的价目表头基础上,增加行信息
--限制:该api有些问题,如果强制增加头信息,会有很多问题,所以该例子只是在已有头信息基础上,增加行信息
--需要手动传参的部分:见注释
--注意事项:无需模拟登陆
DECLARE
p_list_header_id NUMBER(10 );
p_inventory_i...
分类:
其他好文 时间:
2014-07-04 08:28:21
阅读次数:
322
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-07-04 07:35:58
阅读次数:
215
题目链接:uva 11105 - Semi-prime
H-numbers
题目大意:H-number为4?k+1(k为非负数),H-composites为因子中含有H-number(不包括自己本身)的数,反之久是H-prime,给定n,求有多少H-composites。
解题思路:首先用筛选法求出范围内的H-prime,然后枚举两个判断乘积是否在范围内。
#include
#...
分类:
其他好文 时间:
2014-07-04 00:26:37
阅读次数:
248
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-04 00:12:20
阅读次数:
249
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-07-03 23:51:47
阅读次数:
408