Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are t...
分类:
其他好文 时间:
2014-10-30 15:15:01
阅读次数:
312
??
附件下载功能
使用 fnd_lobs 表结合 fnd_gfm 包下载文件,可以下载已经存在fnd_lobs表里的文件,也可以手动写些内容进fnd_lobs表,然后在浏览器里显示:
--1.下载fnd_lobs表里已经存在的文件:
DECLARE
v_file_id NUMBER;
url VARCHAR2(500 );
BEGIN
--Get ...
分类:
数据库 时间:
2014-10-30 13:36:52
阅读次数:
278
UVA 1558 - Number Game题目链接题意:20之内的数字,每次能够选一个数字,然后它的倍数,还有其它已选数的倍数组合的数都不能再选,谁先不能选数谁就输了,问赢的方法思路:利用dp记忆化去求解,要输出方案就枚举第一步就可以,状态转移过程中,选中一个数字,对应的变化写成一个函数,然后就是...
分类:
其他好文 时间:
2014-10-30 13:17:03
阅读次数:
176
问题描述:
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it ...
分类:
其他好文 时间:
2014-10-30 11:52:50
阅读次数:
256
LeetCode Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1,?5,4],the contiguous su...
分类:
其他好文 时间:
2014-10-30 07:12:42
阅读次数:
151
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-10-30 07:06:13
阅读次数:
171
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-10-29 23:51:47
阅读次数:
266
计算NSString的字符长度,用length方法Returns the number of Unicode characters in the receiver,既是英文字符和中文汉字都是一个字符长度,如@“abcde我的”长度为7,而此长度和微博的输入字数实际上是不符的,在微博中,它的长度为5(...
分类:
其他好文 时间:
2014-10-29 23:43:10
阅读次数:
282
The Triangle
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
(Figure 1)
Figure 1 shows a number triangle. Write a program that calculates the highest sum of ...
分类:
其他好文 时间:
2014-10-29 21:37:14
阅读次数:
213
Valid NumberValidate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intend...
分类:
其他好文 时间:
2014-10-29 21:04:03
阅读次数:
166