roman to integer and integer to roman in c++
分类:
编程语言 时间:
2014-05-29 01:40:36
阅读次数:
449
题目链接从代码的健壮性考虑,
应该顾及到把数字翻转后发生溢出的情况,但是此题中并没有这种测试数据。附上代码: 1 class Solution { 2 public: 3 int
reverse(int x) { 4 int tmp = abs(x); 5 i...
分类:
其他好文 时间:
2014-05-29 00:26:22
阅读次数:
243
commit
87f8ac21ca6d2d086984dfc39b1869dc51ecd36fAuthor: Vitasic Date: Tue Jun 26
15:43:38 2012 +0400 Add Fake Playersdiff --git a/src/server/game/...
分类:
数据库 时间:
2014-05-28 04:43:05
阅读次数:
409
DescriptionGiven m sequences, each contains n
non-negative integer. Now we may select one number from each sequence to form a
sequence with m integers...
分类:
其他好文 时间:
2014-05-28 00:05:22
阅读次数:
298
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an
integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:
其他好文 时间:
2014-05-27 23:44:17
阅读次数:
459
Any View object may have an integer ID associated
with it, to uniquely identify the View within the tree. When the application is
compiled, this ID is...
分类:
移动开发 时间:
2014-05-27 17:10:02
阅读次数:
314
这个是TRINTIY端的GM相关的代码。。可以作为参考使用,仅仅是一个载入命令 diff -r
3d55d9aa1fa9 -r 0dadcdc551ce src/server/game/Scripting/ScriptLoader.cpp ---
a/src/server/game/Scriptin...
分类:
其他好文 时间:
2014-05-27 16:18:25
阅读次数:
329
读《Effective Java》的一些收获,会持续添加。 Integer和 int的区别:
int是 Java基本数据类型,表示一个整型值。Integer是对 int基本类型的一个封装(每一个 Integer对象中都包含一个"private final
int value;"的成员变量),...
分类:
编程语言 时间:
2014-05-26 19:39:45
阅读次数:
339
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-26 18:46:20
阅读次数:
251
Determine whether an integer is a palindrome. Do
this without extra space.Some hints:Could negative integers be palindromes? (ie,
-1)If you are thinki...
分类:
其他好文 时间:
2014-05-26 18:07:52
阅读次数:
217