Algorithm Saw Sequence

前端 未结 0 716
余生分开走
余生分开走 2021-01-06 11:39

Here is my solution for saw sequence

function sawSequence(number) {
// best case
if (number.length === 0 || number.length === 1) {
    return 0
}

if (number.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题