[leetcode]344. Reverse String
2016-05-14 21:18
239 查看
Write a function that takes a string as input and returns the string reversed.
Example:
Given s = “hello”, return “olleh”.
Subscribe to see which companies asked this question
不知道自己会不会精分
javascript版本
python版本
Example:
Given s = “hello”, return “olleh”.
Subscribe to see which companies asked this question
不知道自己会不会精分
javascript版本
/** * @param {string} s * @return {string} */ var reverseString = function(s) { return s.split("").reverse().join(""); };
python版本
相关文章推荐
- cf352div2 C D
- 添加环境变量
- 深入理解java内存模型(七)——总结
- QT-怎么添加程序图标
- Cimg代码初探
- Libev源码解析
- 合并排序-java
- 深入理解java内存模型(六)——final
- 开启我的博客之旅
- Ubuntu下安装IDA pro
- 设置ubuntu远程
- mysql5.7安装和配置
- Android之ViewDragHelper
- JSP中forward与sendRedirect在服务端路径问题
- 深入理解java内存模型(五)——锁
- C++中模板类引入
- 关于Android studio新建项目找不到R文件
- 位图&布隆过滤器
- BestCoder zxa and set
- 线程与进程篇