LeetCode——344. Reverse String(字符串反转)
来源:互联网 发布:五山到软件路13 编辑:程序博客网 时间:2024/06/01 14:14
题目链接
题目:
344. Reverse String
DescriptionHintsSubmissionsDiscussSolution
DiscussPick One
Write a function that takes a string as input and returns the string reversed.
Example:
Given s = "hello", return "olleh".
解题:
反转一下,应该是考察倒序输出吧。
代码:
class Solution {public: string reverseString(string s) { reverse(s.begin(),s.end()); return s; }};
阅读全文
0 0
- LeetCode——344. Reverse String(字符串反转)
- LeetCode----344. Reverse String 字符串反转
- [LeetCode]344. Reverse String(反转字符串)
- leetcode 344. Reverse String 反转字符串
- LeetCode--Reverse String 反转字符串(Python)
- 字符串反转--Leetcode Reverse String
- LeetCode Reverse String(字符串反转)
- 344. Reverse String 反转字符串
- LeetCode344——Reverse String(将字符串反转)
- [Leetcode,python] Reverse String 反转字符串
- leetcode Reverse String II 反转字符串
- Leetcode 344 Reverse String 反转字符串
- leetcode 541. Reverse String II 反转字符串
- leetcode解题之344. Reverse String & 345. Reverse Vowels of a String Java版(反转字符串)
- Reverse String 字符串反转
- LeetCode 344. Reverse String(字符串翻转)
- LeetCode oj 344. Reverse String(字符串)
- LeetCode Reverse Words in a String(反转字符串)
- 漫谈程序员系列:一张图道尽程序员的出路 (转载程序视界)
- 二叉搜索树(BST)与平衡二叉树(AVL树)专题
- idea常用设置
- Unity优化之GC——合理优化Unity的GC
- cocos creator 学习(九)讲web项目部署到服务器
- LeetCode——344. Reverse String(字符串反转)
- 百练 二叉树的操作(二叉树)
- 19+ JavaScript 常用的简写技巧
- 2017-8-26 ftp协议与vsftpd服务(必会)
- Eclipse —— 无法启动:The Eclipse executable laucher was unable to locate its companion shared library.
- 在sublime编辑安装markdown插件
- python程序中,中文的支持
- rails_admin配置
- 远程桌面mstsc找不到或丢失问题