
C++练习
爬山的小虾米
往后余生,万事秉心
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++编程练习1
Given words first and second, consider occurrences in some text of the form "first second third", where second comes immediately after first, and third comes immediately after second. For each such o...原创 2019-06-11 09:36:18 · 255 阅读 · 0 评论 -
C++编程练习2
给出一个32位的有符号整数,你需要将这个整数中每位上的数字进行反转。 示例1: 输入:123 输出:321 示例2: 输入:-123 输出:-321 示例3: 输入:120 输出:21 注意: 假设环境只能存的下32位的有符号整数,则其数值范围为,],如果溢出则返回0。 主要代码如下: class Solution { public: int r...原创 2019-06-11 20:35:47 · 460 阅读 · 0 评论