码迷,mamicode.com
首页 >  
搜索关键字:每日    ( 4265个结果
每日算法之二十:Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-06-05 02:15:14    阅读次数:262
每日一小练——数值自乘递归解
上得厅堂,下得厨房,写得代码,翻得围墙,欢迎来到睿不可挡的每日一小练!题目:数值自乘递归解内容:假设一个n与m是正整数,那么m^n就是把m连乘n次,这是一个非常没有效率的方法。试试编写一个更有效率的程序,应该以少量n-1个乘法作为设计标准。我的解法:上来没多想,打开vs2013就敲了起来,问题果然非...
分类:其他好文   时间:2014-06-02 00:57:02    阅读次数:294
每日算法之二十五:Divide Two Integers
Divide two integers without using multiplication, division and mod operator. 不使用乘法、除法和求模运算求两个数相除。...
分类:其他好文   时间:2014-06-01 18:16:23    阅读次数:311
程序员的奋斗史(三十八)——大学断代史(二)——我与数据库的故事
惰性人皆有之,也算是人的一大天性。几日之前便构思好此文,怎奈每日杂事繁多,今日才提起笔,作下此文。本文谈谈我与数据库的故事。诗和远方永远存在。写着惊世骇俗的诗,心系可以眺望的远方,伴着沿途的风景,独自前行。...
分类:数据库   时间:2014-06-01 18:14:23    阅读次数:325
每日算法之二十二:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space....
分类:其他好文   时间:2014-06-01 10:41:23    阅读次数:242
每日算法之二十三:Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:其他好文   时间:2014-06-01 09:05:42    阅读次数:271
orale 查询每年、每月、每日统计量的sql语句
每年 select to_char(createtime, 'YYYY') 年, count(*) from table  group by to_char(createtime, 'YYYY'); 每季度 select to_char(createtime, 'q') 年, count(*) from table  group by to_char(createtime, 'q'); ...
分类:数据库   时间:2014-06-01 08:48:29    阅读次数:368
ios成长之每日一遍(day 8)
这几天都有一些任务要跟, 把ios的学习拉后, 看看要抓紧咯, 看看轮到的学习的是UITableView。BIDViewController.h#import @interface BIDViewController : UIViewController@property (copy, nonato...
分类:移动开发   时间:2014-05-31 11:27:25    阅读次数:386
每日一小练——二项式系数加法解
上得厅堂,下得厨房,写得代码,翻得围墙,欢迎来到睿不可挡的每日一小练!题目:二项式系数加法解内容:请编写一个程序,仅仅用加法,求出n中取r个组合系数C(n,r),而且尽可能地使加法数目减少。关于二项式:在数学里,二项式系数,或组合数,是定义为形如(1 + x)的二项式n次幂展开后x的系数(当中n为自...
分类:其他好文   时间:2014-05-30 02:44:10    阅读次数:201
每日总结-05-16(再见强哥有感)
今天下午做了一下之前晚上的CF,晚上强哥就来了。又见到强哥了,感受挺多的,还记得大二上学期的区域赛就是强哥带着我们打的,可是没打好,给强哥丢人了。这次强哥来,我省赛又打成那样,真是没脸见人了。。。想想如今已经坚持做ACM三年了,一路走来,颇为艰辛。自己总是没有一个固定的队友。大一的时候,ZRQ和YS...
分类:其他好文   时间:2014-05-28 21:04:35    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!