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 · 210 阅读 · 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 · 373 阅读 · 0 评论