首页 > 代码库 > 344. Reverse String

344. Reverse String

Question:

Write a function that takes a string as input and returns the string reversed.

Example 1:

Given s = "hello", return "olleh".

Note:

  1. n is a positive integer, which is in the range of [1, 10000].
  2. All the integers in the array will be in the range of [-10000, 10000].

Solution:

 1 答案略过吧,真个很简单了

题目直达:https://leetcode.com/problems/reverse-string/#/description

答案直达:http://blog.csdn.net/crazy1235/article/details/51420522

344. Reverse String