Results 2 comments of zheiyi

````js const fn = (str) => { if (!str || str.length === 0) { return str; } const strArr = str.split(',').map((n) => Number(n)); const len = strArr.length; const arr =...

``` function r(arr) { const result = []; while (arr.length) { const top = arr.pop(); result.push(top); // 放入顶部 if (arr.length) { const first = result.shift(); // 底部弹出 result.push(first); // 放入顶部...