码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
[C++]LeetCode: 88 Factorial Trailing Zeroes (阶乘后导零)
题目: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 思路: 我们要计算 N! 中有多少个后导0. 我们来找一下规律,考虑n!的质数因子。后缀0,只有可能是质因子2...
分类:编程语言   时间:2015-01-11 16:16:18    阅读次数:272
CAT
cat主要有三大功能:1.一次显示整个文件。 cat filename2.从键盘创建一个文件。 cat > filename 只能创建新文件,不能编辑已有文件.3.将几个文件合并为一个文件: cat file1 file2 > file参数:-n 或 --number 由 1 开始对所有输出...
分类:其他好文   时间:2015-01-11 16:08:37    阅读次数:235
[C++]LeetCode: 87 Letter Combinations of a Phone Number
题目: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:D...
分类:编程语言   时间:2015-01-11 14:56:20    阅读次数:236
[C++]LeetCode: 86 Gray Code (格雷码)
题目: 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 seque...
分类:编程语言   时间:2015-01-11 12:27:43    阅读次数:282
OJ练习3——T9
Palindrome Number判断正整数是否是回文。不许额外占用空间。【分析】题目提示说,如果想把整数变换成string型,不符合题目不额外占空间,另外You could also try reversing an integer. However, if you have solved the...
分类:其他好文   时间:2015-01-11 12:22:45    阅读次数:176
leetcode 152. Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:其他好文   时间:2015-01-11 12:11:44    阅读次数:133
[LeetCode#104, 111]Maximum Depth of Binary Tree, Minimum Depth of Binary Tree
The problem 1:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to t...
分类:其他好文   时间:2015-01-11 06:07:49    阅读次数:216
Oracle 中如何判断一个字符串是否为数字
方法一:通过 To_Number 函数异常来判断 CREATE OR REPLACE FUNCTION Is_Number (    str_    VARCHAR2 ) RETURN VARCHAR2    IS         num_    NUMBER;           BEGIN        num_ := to_number(str_);            ...
分类:数据库   时间:2015-01-11 01:01:28    阅读次数:167
hdu2167--Pebbles(状压dp)
Pebbles Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Description You're given an unlimited number of pebbles to distribute across an N x N g...
分类:其他好文   时间:2015-01-10 22:24:07    阅读次数:259
存储过程案例
1.创建表1 CREATE TABLE book2 (3 bookId NUMBER,4 bookName VARCHAR2(50),5 publishHouse Varchar2(50)6 )2.----------有输入参数的存储过程(添加操作)----...
分类:其他好文   时间:2015-01-10 19:39:42    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!