第一题:
return s.split(''). map(function(x){return +x}). reduce(function(x,y){return 10*x+y}
第二题:
return arr.map(function(s){return s.toLowerCase()}) .map(function(s){return s[0].toUpperCase()+s.slice(1)})
Sign in to make a reply
飘逸高铁侠
第一题:
第二题: