HTML
JavaScript
CSS
其他
前端工程化
源码
Vue
算法题库
前端题库
技术博客
Code Repository
Appearance
leetCode-344. 反转字符串数组
/** * @param {character[]} s * @return {void} Do not return anything, modify s in-place instead. */ var reverseString = function(s) { let start = 0; let end = s.length - 1; while(start < end) { [s[start], s[end]] = [s[end], s[start]] start++; end--; } };