1 Star 0 Fork 0

表情扭曲 / leetcode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lc344.java 422 Bytes
一键复制 编辑 原始数据 按行查看 历史
liu13 提交于 2019-03-05 09:47 . 20190305
package code;
/*
* 344. Reverse String
* 题意:反转字符串
* 难度:Easy
* 分类:Two Pointers, String
* 思路:
* Tips:
*/
public class lc344 {
public void reverseString(char[] s) {
int begin = 0, end = s.length-1;
while(begin<end){
char ch = s[begin];
s[begin] = s[end];
s[end] = ch;
begin++;
end--;
}
}
}
1
https://gitee.com/abfantasy/leetcode.git
git@gitee.com:abfantasy/leetcode.git
abfantasy
leetcode
leetcode
master

搜索帮助