内部使用负数表示 当函数还未考虑到符号影响时候,内部是用负数来表示逐步转换的结果。 初看到下面两句,很是疑惑。 int?max?=?Integer.MIN_VALUE?/?radix; int?next?=?result?*?radix?-?digit; 为什...
分类:
编程语言 时间:
2014-12-28 13:03:01
阅读次数:
547
问题描述:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
...
分类:
其他好文 时间:
2014-12-28 10:29:31
阅读次数:
161
procedureTRES_CQ_JB_F.N1Click(Sender:TObject);variLoop:Integer;begininherited;if_JuMaPao=3thenbeginifIsZCJB=2thenbeginCQ_JB_P_F:=TCQ_JB_P_F.Create(Self);ifCQ_JB_P_F.ShowModal=mrokthenbegincxGrid2.BeginUpdate;cxGrid2DBTableView1.BeginUpdate;foriLoop:=0tocxGr..
分类:
其他好文 时间:
2014-12-28 02:00:39
阅读次数:
178
Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number and the index of the l...
分类:
其他好文 时间:
2014-12-27 23:00:42
阅读次数:
421
昨天北师大新生赛的题,本弱做一做。。。
贪心题,按照结束时间排序进行贪心。
http://www.bnuoj.com/v3/problem_show.php?pid=44582
MLX的疯狂睡眠
Time Limit: 1000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld
J...
分类:
其他好文 时间:
2014-12-27 17:40:07
阅读次数:
309
Using O(1) time to check whether an integer n is a power of 2.ExampleFor n=4, return trueFor n=5, return falseChallengeO(1) timeAnalysis:Use bit manip...
分类:
其他好文 时间:
2014-12-27 06:44:21
阅读次数:
179
题目地址:https://oj.leetcode.com/problems/excel-sheet-column-title/题目内容:Given a positive integer, return its corresponding column title as appear in an Ex...
分类:
其他好文 时间:
2014-12-27 06:44:00
阅读次数:
152
Given an integer array, find a subarray with sum closest to zero. Return the indexes of the first number and last number.ExampleGiven [-3, 1, 1, -3, 5...
分类:
其他好文 时间:
2014-12-27 06:42:21
阅读次数:
661
Given an integer array with no duplicates. A max tree building on this array is defined as follow:The root is the maximum number in the arrayThe left ...
分类:
其他好文 时间:
2014-12-27 06:37:51
阅读次数:
132
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
Credits...
分类:
其他好文 时间:
2014-12-26 23:00:19
阅读次数:
145