摘要: Problem: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of 阅读全文
posted @ 2016-10-28 12:02 yrwang 阅读(154) 评论(1) 推荐(0) 编辑
摘要: Problem: Write a function that takes a string as input and returns the string reversed. 此题一般思路为:在原数组上直接对s[i]以及s[len-i-1]进行调换即可。 阅读全文
posted @ 2016-10-28 10:37 yrwang 阅读(86) 评论(0) 推荐(0) 编辑