mirror of
https://github.com/prdlk/leetcode.git
synced 2026-11-02 21:22:43 +00:00
style(problems): clean up whitespace in reverse-string solution
This commit is contained in:
1 parent
6f4686d7e9
commit
6af743173d
1 file changed
+1
-2
@@ -37,7 +37,6 @@
|
|||||||
* @return {void} Do not return anything, modify s in-place instead.
|
* @return {void} Do not return anything, modify s in-place instead.
|
||||||
*/
|
*/
|
||||||
var reverseString = function(s) {
|
var reverseString = function(s) {
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
let j = s.length - 1;
|
let j = s.length - 1;
|
||||||
|
|
||||||
@@ -45,5 +44,5 @@ var reverseString = function(s) {
|
|||||||
[s[i], s[j]] = [s[j], s[i]];
|
[s[i], s[j]] = [s[j], s[i]];
|
||||||
j--;
|
j--;
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user