码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
触发器应用 trigger
首先有一张表:create table T_SALARY( name VARCHAR2(20), age NUMBER(2), salary NUMBER(5));insert into t_salary (NAME, AGE, SALARY)values ('wyl', 23, 6...
分类:其他好文   时间:2015-07-14 15:31:37    阅读次数:113
面试那些事-用数组实现十进制数的相加
最近去某某公司面试,被问到的题:设计程序,实现两个大数据相加,可惜我没能答上,下来我写了一下,其实挺简单,代码实现如下:public class Number { private String str; Number(String str){ this.str=str; arr=new int[.....
分类:编程语言   时间:2015-07-14 15:16:52    阅读次数:122
【LeetCode】Happy Number
Happy Number问题描述Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of...
分类:移动开发   时间:2015-07-14 13:41:51    阅读次数:126
Leetcode & CTCI ---Day 5
Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l...
分类:其他好文   时间:2015-07-14 09:50:01    阅读次数:106
岛屿的个数
|题目给一个01矩阵,求不同的岛屿的个数。0代表海,1代表岛,如果两个1相邻,那么这两个1属于同一个岛。我们只考虑上下左右为相邻。|在线测试本题http://www.lintcode.com/zh-cn/problem/number-of-islands/|难度容易
分类:其他好文   时间:2015-07-13 23:42:08    阅读次数:312
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],...
分类:其他好文   时间:2015-07-13 22:22:20    阅读次数:95
Set8087CW
Set8087CWThis example accesses the Floating Point Unit (FPU) control register. Try turning floating point exceptions off and on and dividing a number ...
分类:其他好文   时间:2015-07-13 22:17:19    阅读次数:195
[LeetCode] Factorial Trailing Zeroes
Question:Given an integern, return the number of trailing zeroes inn!.1、题型分类:2、思路:寻找n!后面的0的个数,即有多少个2*5,从而需要寻找里面总共有多少个2和多少个5,2肯定比5多,则只要找出5的个数即可。n/5是从n/...
分类:其他好文   时间:2015-07-13 22:12:53    阅读次数:137
Combination Sum
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:其他好文   时间:2015-07-13 22:02:26    阅读次数:123
Maximum Sum 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...
分类:其他好文   时间:2015-07-13 22:02:02    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!