博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
344. Reverse String
阅读量:4601 次
发布时间:2019-06-09

本文共 371 字,大约阅读时间需要 1 分钟。

1 static int wing=[]() 2 { 3     std::ios::sync_with_stdio(false); 4     cin.tie(NULL); 5     return 0; 6 }(); 7  8 class Solution  9 {10 public:11     string reverseString(string s) 12     {13         int len=s.length();14         int i=0,j=len-1;15         char temp;16         while(i

逆置字符串,首末指针,交换指针指向值即可。

转载于:https://www.cnblogs.com/zhuangbijingdeboke/p/9090806.html

你可能感兴趣的文章
LCD常用接口原理
查看>>
LC5730 3G模块在ARM板上的调试&GPRS拨号上网
查看>>
ubuntu grub修复
查看>>
Cannot call sendRedirect() after the response has been committ
查看>>
异构并行计算课程大纲
查看>>
记一次坑爹的ORA-01152&ORA-01110错误
查看>>
SQL Server Sleeping会话占用内存资源浅析?
查看>>
阿里巴巴开源canal
查看>>
导出war包
查看>>
left join 改写标量子查询
查看>>
Jenkins 八: 构建Git项目
查看>>
Java获取时间,将当前时间减一年,减一天,减一个月
查看>>
自动化测试使用流程
查看>>
电梯会议视频
查看>>
规范化的重要性
查看>>
查询车系特定口碑信息
查看>>
adt新建项目后去掉appcompat_v7的解决方法
查看>>
2017-0308作业
查看>>
虚函数与虚析构函数原理
查看>>
C语言的一些基础
查看>>