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-04-30 03:52:56
阅读次数:
411
题目: 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 t...
分类:
其他好文 时间:
2014-04-30 03:20:07
阅读次数:
502
Mine NumberTime Limit: 1000ms Memory limit:
65536K有疑问?点这里^_^题目描述Every one once played the game called Mine Sweeping, here I
change the rule. You are g...
分类:
其他好文 时间:
2014-04-30 01:05:41
阅读次数:
857
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-04-30 00:21:32
阅读次数:
536
Network of SchoolsTime Limit:1000MSMemory
Limit:10000KTotal Submissions:10500Accepted:4189DescriptionA number of schools
are connected to a computer n...
分类:
其他好文 时间:
2014-04-29 20:33:42
阅读次数:
567
1、带参数的存储过程CREATE OR REPLACE PROCEDURE sp_pro2
(spname VARCHAR2, newsal NUMBER) ISBEGIN UPDATE emp SET sal = newsal WHERE
ename=spname;END;--参数VARCHAR2...
分类:
数据库 时间:
2014-04-29 19:45:33
阅读次数:
610
思路很简单,就是通过map对应,随后通过递归调用,这里遇到了个问题就是开始用string
&re
,然后往里传re+c是不可以的,本来想省点内存,结果不行,所以只能值传递了,后来才知道string竟然还有push_back()和pop_back(),服了。
1 class Solution { 2 ...
分类:
其他好文 时间:
2014-04-29 19:31:07
阅读次数:
524
CREATE FUNCTION annual_income(spNAme VARCHAR2)
RETURN NUMBER IS yearSal number(7,2);BEGIN SELECT (sal+NVL(comm,0))*12 INTO
yearSal FROM emp WHERE enam...
分类:
数据库 时间:
2014-04-29 18:08:00
阅读次数:
497
1、变量标量类型(scalar)复合类型(composite)参照类型(reference)lob(large
object)--定义一个变长字符串v_ename VARCHAR2(10)--定义一个小数,范围-9999.99~9999.99v_sal
NUMBER(6,2)--定义一个小数,并给初...
分类:
数据库 时间:
2014-04-29 17:14:28
阅读次数:
582
2014-04-29
01:05题目:数数从0到n总共有多少个数字‘2’?解法:数位动态规划,可以O(log10(n))时间内解决。代码: 1 // 18.4 Count the
number of 2s from 0 to n. 2 #include 3 using namespace std;....
分类:
其他好文 时间:
2014-04-29 14:44:34
阅读次数:
380