Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:
其他好文 时间:
2014-10-16 21:06:03
阅读次数:
180
一、 如何避免在产品开发后期不断有重大修改,导致其他模块的连锁反应?我认为首先前期的需求分析要尽可能完善并确定,需求变更是程序员所不能承受生命之重。另外题目中谈到的设计模式变更方法,是个很好的控制策略。项目早期采用Tell-mode,可以先行设计并编码,有较高的自由度;到了项目稳定阶段,采用Ask-...
分类:
其他好文 时间:
2014-10-13 14:37:29
阅读次数:
193
题目链接题意 : 给你一个数,未知进制,然后让你从2到36进制中找出一个最小的进制K,满足给你的这个数作为k进制时能够整除k-1。思路 : 有一个公式,(a*b^n)mod(b-1)=a;给定你这个数,当做字符串输入的时候,这个数转化成10进制的结果应该是:a[0]*k^(n-1)+a[1]*k^(...
分类:
其他好文 时间:
2014-10-10 23:34:34
阅读次数:
172
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:
其他好文 时间:
2014-10-07 15:47:23
阅读次数:
204
思路还是蛮清晰的 ask: x = t[nowright-1] - t[nowleft] get_ans: ans += C(l[nowleft],k) * C(r[nowright],k) * x update: t[i] = t[i] - C(up[i],k)...
分类:
其他好文 时间:
2014-10-04 10:13:46
阅读次数:
534
Thread相关内容1.http://stackoverflow.com/questions/1091135/whats-the-purpose-of-thread-spinwait-method(Jon Skeet说的那句话 "if you need to ask, you don't need ...
分类:
Web程序 时间:
2014-10-03 23:19:05
阅读次数:
220
原因是:在64位的fedora linux系统上运行32位程序时需要32-libs库支持(其他linux分支系统的32-libs需自行查找) 原文地址:https://ask.fedoraproject.org/en/question/9556/how-do-i-install-32bit-libraries-o...
分类:
移动开发 时间:
2014-10-03 00:46:54
阅读次数:
263
Last night , I attended writting examination for Bai Du,There is a problem, ask us implement a state machine to deleting the comments in c,I don't k.....
分类:
编程语言 时间:
2014-09-27 10:43:39
阅读次数:
178
The kth great number
Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the numb...
分类:
其他好文 时间:
2014-09-22 19:12:13
阅读次数:
197