We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 712ab9a commit fb7a575Copy full SHA for fb7a575
problems/0344.反转字符串.md
@@ -218,7 +218,19 @@ func reverseString(_ s: inout [Character]) {
218
}
219
```
220
221
-
+C:
222
+```c
223
+void reverseString(char* s, int sSize){
224
+ int left = 0;
225
+ int right = sSize - 1;
226
+
227
+ while(left < right) {
228
+ char temp = s[left];
229
+ s[left++] = s[right];
230
+ s[right--] = temp;
231
+ }
232
+}
233
+```
234
235
236
-----------------------
0 commit comments