linbaichuan0818
Results
2
comments of
linbaichuan0818
function outerFn(num){ var count=0 var str=num+"" var l=str.length var result="" function innerFn(){ if(count==l) return console.log(result) result+=str.slice(-count-1)[0] count++ innerFn() } return innerFn() } outerFn(31234)//43213
``` function maxNoRepeatStr(str){ if(typeof str !== 'string') return console.warn("Expected string, But got " + typeof str); let noRepeatStr = ''; let lastIndex = str.length - 1; let max = 0;...