百日算法

265 阅读1分钟

```function accum(s) {    return s.split('').map((c, i) => (c.toUpperCase() + c.toLowerCase().repeat(i))).join('-')}```