摘要:也就是说该数字出现的次数比其他所有数字出现次数的和还要多。因此可以保存两个值,一个数字,一个次数。遍历时1、如果数字相同,count++2、如果count == 0 count = 1 number替换 3、如果不相同 count--int main(){ int array[] = {...
阅读全文
摘要:LinkedNode reserve(LinkedNode head){ if (head == NULL) return NULL; LinkedNode p1 = head; LinkedNode p2 = head->next; LinkedNode p3 = NULL; while (p2 ...
阅读全文
摘要:void findLastK(LinkedNode head, int k, int n){ if (head == NULL || k == 0) return; LinkedNode t1 = head; LinkedNode t2 = head; for (int i = 0; i next...
阅读全文
摘要:[\x{4e00}-\x{9fa5}]=============================================参考资料1、在javascript下正确的\x4e00-\x9fa5并不完全适合php中文正则表达式;2、匹配中文全角字符的正则: ^[\x80-\xff]*^/ ;3、G...
阅读全文
摘要:http://ol.tgbus.com/zt2013/gzsnew/ 巴士盘点 十大游戏工作室http://bbs.3dmgame.com/forum.php?mod=viewthread&action=printable&tid=3800390 十大值得尊敬的游戏工作室http://blog.cs...
阅读全文
摘要:仅仅为了收藏技术博客投身于Cocos..笨木头博客..http://blog.csdn.net/musicvs黑米GameDev街区http://www.himigame.com/豪华版飞机游戏http://cn.cocos2d-x.org/tutorial/index?type=cocos2d-x...
阅读全文