码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
leetcode-17 Letter Combinations of a Phone Number
问题描述: Given a digitstring, return all possible letter combinations that the number couldrepresent. A mapping of digitto letters (just like on the telephone buttons) is given below. Input:Digi...
分类:其他好文   时间:2015-04-24 19:15:54    阅读次数:173
oracle自治事务
自治事务的使用,独立于外层的事务控制 create or replace procedure insert_err_po( OrderNo number,CycleId number ) is pragma autonomous_transaction; begin insert into tt_err_po(po_num_id,cycle_num_id...
分类:数据库   时间:2015-04-24 17:00:24    阅读次数:190
求数组中的重复值
题目描述:      假设 你用一个1001个整数组的数组,这些整数是任意排列的,但是你知道所有的整数都在1到1000(包括1000)之间,此外,除一个数字出现两次外,其他所有数字只出现一次。假设你只能对这个整数做一次处理,用一种算法找出重复的那个数字。(不用辅助的存储方式) 1.sum up all the number,then subtract the sum from 1001...
分类:编程语言   时间:2015-04-24 14:26:25    阅读次数:127
Happy Number
我觉得这个算法比较陌生,对我不是简单题目public class Solution { public boolean isHappy(int n) { // 这个叫“模拟”的算法是什么http://meetqun.com/thread-8853-1-1.html H...
分类:移动开发   时间:2015-04-24 14:09:39    阅读次数:119
视图中增加一个自动增加的字段
selectid=row_number()over(orderbyaa),*from视图或表idaabbcc--------------------------------------------------------------------------------1215346234345436...
分类:其他好文   时间:2015-04-24 14:04:55    阅读次数:119
leetcode136:single number I&II 及拓展
Single Number I给定一个数组,除了一个元素出现一次之外,其余的元素都出现两次。找出这个元素分析:只要将所有的元素都异或一次,最后的结果就是这个出现一次数。代码:int singleNumber(int A[], int n) { int num; int i; num=A[0]; for(i=1;i<n;i++) { num=nu...
分类:其他好文   时间:2015-04-24 12:44:02    阅读次数:168
leetcode 1: 找出两个数相加等于给定数 two sum
问题描述对于一个给定的数组,找出2个数,它们满足2个数的和等于一个特定的数,返回这两个数的索引。(从1开始) 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...
分类:其他好文   时间:2015-04-24 12:38:32    阅读次数:132
hdu 2665 可持久化线段树求区间第K大值(函数式线段树||主席树)
http://acm.hdu.edu.cn/showproblem.php?pid=2665 Problem Description Give you a sequence and ask you the kth big number of a inteval.   Input The first line is the number of the t...
分类:其他好文   时间:2015-04-24 12:33:31    阅读次数:116
Number of Islands
https://leetcode.com/problems/number-of-islands/Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounde...
分类:其他好文   时间:2015-04-24 12:14:49    阅读次数:143
[Java]LeetCode17 Letter Combinations of a Phone Number
[Java]LeetCode17 Letter Combinations of a Phone Number...
分类:编程语言   时间:2015-04-24 10:36:33    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!