首页 > 其他 > 详细

Daily Practice 2016-09-20

时间:2020-02-06 12:56:09      阅读:81      评论:0      收藏:0      [点我收藏+]

算法

回文(Palindrome)数字:判断一个数字是不是回文数字,不能使用另外的空间。

提示:

  • 负数可以是回文数字吗?
  • 如果转为字符串需要新分配空间
  • 你也许想到了反转数字,但反转数字可能溢出,怎样处理这种情况?
1
2
3
4
5
6
class Solution {
public:
bool isPalindrome(int x) {
大专栏  Daily Practice 2016-09-20"line"> }
};

数学

阿呆和阿瓜比赛下军旗,两人水平相当。两人约定赛7局,先赢4局者胜。现在已经比了3局,阿呆胜了2局,阿瓜胜了1局。请问:阿呆获得最后胜利的概率有多少?

英语

1
2
We can see _____ sun and _____ moon in _____ picture.
A. a; the; the; B. the; a; the C. a; the; a D. the; the; the

Daily Practice 2016-09-20

原文:https://www.cnblogs.com/lijianming180/p/12268249.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!