码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
分割字符串,返回第1部分
CREATE OR REPLACE FUNCTION GET_STRING_01_FC(P_STRING VARCHAR2,P_SEPARATOR VARCHAR2)RETURN VARCHAR2 ASV_POS NUMBER;BEGIN V_POS:= INSTR(P_STRING,P_SEPAR...
分类:其他好文   时间:2015-03-09 14:19:01    阅读次数:107
Palindrome Number
要注意负数不是回文,我是用上一题的解法做的。把这个数反转判断是否与原数相同。但这里也要考虑溢出的问题。注意的细节还蛮多,以后要多想下细节方面。bool isPalindrome(int x) { if(x<0) return false; long long ans = 0,cur =...
分类:其他好文   时间:2015-03-09 14:16:35    阅读次数:101
Twitter OA prepare: Anagram is A Palindrome
Algorithm:Count the number of occurrence of each character.Only one character with odd occurrence is allowed since in a palindrome maximum number of c...
分类:其他好文   时间:2015-03-09 12:38:44    阅读次数:145
mysql format 格式化 返回值
早上发现一个奇怪问题,跟踪一下,发现了如下问题,记录一下: Mysql 数据库的format?? 查看文档:Formats the number X to a format like‘#,###,###.##‘, rounded to D decimal places, and returns the resul...
分类:数据库   时间:2015-03-09 11:09:55    阅读次数:199
android.support.v4包中的LruCache源码简读
package android.util; import java.util.LinkedHashMap; import java.util.Map; /** * A cache that holds strong references to a limited number of ...
分类:移动开发   时间:2015-03-09 07:03:26    阅读次数:177
Lintcode: Kth Prime Number
Design an algorithm to find the kth number such that the only prime factors are 3, 5, and 7.The eligible numbers are like 3, 5, 7, 9, 15 ...ExampleIf ...
分类:其他好文   时间:2015-03-09 07:01:19    阅读次数:183
Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number...
分类:其他好文   时间:2015-03-09 01:44:34    阅读次数:128
USACO Section1.2 Name That Number 解题报告
namenum解题报告—— icedream61 博客园(转载请注明出处)------------------------------------------------------------------------------------------------------------...
分类:其他好文   时间:2015-03-09 00:27:12    阅读次数:284
LeetCode-137 Single Number II
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:其他好文   时间:2015-03-09 00:24:08    阅读次数:129
LeetCode 笔记26 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-03-08 21:30:59    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!