Easy-8
来源:互联网 发布:淘宝电商需要什么条件 编辑:程序博客网 时间:2024/05/29 15:40
leetcode 344. Reverse String
Write a function that takes a string as input and returns the string reversed.
Example:
Given s = "hello", return "olleh".
AC:
char* reverseString(char* s) {
int length=strlen(s);
for(int i=0;i<length/2;i++)
{
int k=s[i];
s[i]=s[length-1-i];
s[length-1-i]=k;
}
return s;
}
0 0
- Easy-8
- Leetcode--easy系列8
- easy
- Easy
- A. Appleman and Easy Task 8-26
- [Leetcode 8, Easy] String to Integer
- Easy-题目8:242. Valid Anagram
- Easy 8题 String to Integer (atoi)
- Easy 8 Remove Element(27)
- LeetCode-Easy刷题(8) Remove Element
- Easy way for 16, 8 , 2 decimal switch 10 decimal.
- HDU 1.3.8 As Easy As A+B
- LeetCode-8-String to Integer (atoi) (String/Num)-Easy
- HDU 1.3.8 As Easy As A+B
- 群赛 round#8 解题报告一 (swop,ranwen,easy)
- Easy Plugs
- easy problem
- So Easy!
- 【HackerRank】【HourRank 20】Birjik and Nicole's Tree Game
- menu文件在actionbar中的用法
- 安卓集成极光推送经验总结
- PHP中的VC6,VC9,VC11,TS,NTS区别
- Linux 远程登录
- Easy-8
- okhttp的两种简易请求
- 欢迎使用CSDN-markdown编辑器
- c++实验5——数组分离
- html5和xhtml的关系
- c++第五次实验-数组1
- 去公司面试,记录下的hadoop最新面试题
- StringTokenizer的介绍以及简单的使用demo
- Python 二进制串转字符串例子