Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi, saw your solution, looks simple and effective,
just kindly let you know that Python has a divmod() function. This is a built-in one.
say divmod(13,4) you get a tuple (3, 1) returned.
Benson你好,看到你5月份开始python,很快就到4kyu了,厉害!
是这个月开始看python,目前还在5kyu, 去年我弄过一段时间js,因为其实事情就没有继续。
方便加个微信吗? 我是工作了好多年了,现在开始自学计算机的东西,想找个人聊聊谢谢 !
Hi Petegarvin,
Would u have a look at 'climbing' == 837 ?
'volcano' == 754 ? should return 'climbing'?
Cheers,
my金鑫, u r a top man!
unbelievable
Buddies, another one finished, while always run out of time:
function sequenceClassifier(arr){
var arrFil = arr.map( (v, i, self) => ((v - self[i + 1]) < 0 ? - 1 : ((v - self[i + 1]) > 0) ? 1 : 0))
.splice(0, arr.length - 1)
.filter((v,i,self) => (self.indexOf(v) === i));
switch (arrFil.length){
case 3: return 0;
case 2: return arrFil[0] * arrFil[1] === -1 ? 0 : ((arrFil[0] + arrFil[1]) < 0 ? 2 : 4);
case 1: return arrFil[0] === -1 ? 1 : (arrFil[0] === 1 ? 3 : 5);
default: return 'Some thing is Wrong!';
}
}
Big brother, is this cheating? ^-^, how did you get these numbers?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution