码迷,mamicode.com
首页 >  
搜索关键字:maximum number of format    ( 43533个结果
LeetCode - Best Time to Buy and Sell 3
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an algorithm to find the maximum profit. You may complete at most two transactions. 3 * @pa...
分类:其他好文   时间:2014-07-22 23:01:13    阅读次数:251
[leetcode]Valid Number @ Python
原题地址:http://oj.leetcode.com/problems/valid-number/题意:判断输入的字符串是否是合法的数。解题思路:这题只能用确定有穷状态自动机(DFA)来写会比较优雅。本文参考了http://blog.csdn.net/kenden23/article/detail...
分类:编程语言   时间:2014-05-02 00:04:57    阅读次数:483
(转)JavaScript中判断对象类型的种种方法
我们知道,JavaScript中检测对象类型的运算符有:typeof、instanceof,还有对象的constructor属性: 1) typeof 运算符 typeof 是一元运算符,返回结果是一个说明运算数类型的字符串。如:"number","string","boolean","object...
分类:编程语言   时间:2014-05-01 19:46:51    阅读次数:399
常用C库函数小结
1. sprintf 原型:int sprintf( char *buffer, const char *format, [ argument] … ); 功能:将格式化后的字符串写在buffer中,常用于把数字打印在字符串中;连接字符串。 参数:buffer - 待写入缓冲区; format - ...
分类:其他好文   时间:2014-05-01 19:32:52    阅读次数:323
线段树入门(Billboard)
Billboard Time Limit:8000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description At the entrance to the university, there is a huge rectangu...
分类:其他好文   时间:2014-05-01 19:28:02    阅读次数:444
十进制转二进制
十进制转二进制的递归实现算法: 1 #include 2 void dectobi(int a); 3 4 int main() 5 { 6 int i; 7 printf("please input a decimical number\n"); 8 scanf("%...
分类:其他好文   时间:2014-05-01 19:19:33    阅读次数:397
从MYSQL数据库查出指定格式的日期
1、用SQL语言控制:格式如下:select DATE_FORMAT(t.startTime,"%Y-%m-%d %H:%i") AS startTime,DATE_FORMAT(t.endTime,"%Y-%m-%d %H:%i") AS endTimefrom table输出格式为:YYYY-m...
分类:数据库   时间:2014-05-01 19:04:54    阅读次数:847
xml publisher根据条件显示或隐藏列
?? xml publisher根据条件显示或隐藏列 if@column:condition?> …… 例子: 根据PROJECT_FLAG标签显示或隐藏项目号的列 IF 项目号 EI IF PROJECT_NUMBER EI IF: EI: 注意:对应的PROJECT_FLAG需要同时在头和行上有...
分类:其他好文   时间:2014-04-30 22:43:40    阅读次数:258
Excel函数大全
我们在使用Excel制作表格整理数据的时候,常常要用到它的函数功能来自动统计处理表格中的数据。这里整理了Excel中使用频率最高的函数的功能、使用方法,以及这些函数在实际应用中的实例剖析,并配有详细的介绍。   1、ABS函数    函数名称:ABS    主要功能:求出相应数字的绝对值。    使用格式:ABS(number)    参数说明:number代表需要求绝对值的数值或...
分类:其他好文   时间:2014-04-30 22:23:38    阅读次数:419
dispatch_once的实现分析
dispatch_once的实现分析 dispatch_once可以保证代码被执行一次 +(NSDateFormatter*)getDBDateFormat { static NSDateFormatter* format; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ format = [[LKDateFormatter alloc]init]; format.dateF...
分类:其他好文   时间:2014-04-30 22:12:40    阅读次数:336
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!