算法(lintcode等)
文章平均质量分 68
zyxyzz
这个作者很懒,什么都没留下…
展开
-
c++,java,python 的字符串反转方法(回文数比较)
1.c++ int ,long ,long long 转string,以及string 反转 bool palindromeNumber(int num) { // Write your code here int ss; char temp[64]; string str; ss=num; spr原创 2017-08-02 19:06:17 · 288 阅读 · 0 评论 -
2017年百度之星编程赛初赛A场-1005-今夕何夕
今夕何夕 Accepts: 1345 Submissions: 5533 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 今天是2017年8月6日,农历闰六月十五。 小度独自凭栏原创 2017-08-12 22:17:24 · 392 阅读 · 0 评论 -
2017年百度之星编程赛初赛B场-1001-Chess
Chess Accepts: 1805 Submissions: 5738 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 車是中国象棋中的一种棋子,它能攻击同一行或同一列中没有其原创 2017-08-13 23:31:00 · 392 阅读 · 0 评论 -
lintcode 有效数字
class Solution: """ @param: s: the string that represents a number @return: whether the string is a valid number """ def isNumber(self, s): # write your code here s原创 2017-08-28 23:29:46 · 363 阅读 · 0 评论