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.
ordered - suppose to have unique values
for this code:
Metrics
There is only one function in this file.
It takes one argument.
This function contains only one statement.
Cyclomatic complexity number for this function is 3.
https://jshint.com/
Metrics
There are 2 functions in this file.
Function with the largest signature take 2 arguments, while the median is 1.5.
Largest function has 1 statements in it, while the median is 0.5.
The most complex function has a cyclomatic complexity value of 2 while the median is 1.5.
////////////////////////////////////////
I took from https://jshint.com/
in my opinion complexity 2 is quite good;
in case or more data like this
[3, 6, -8, -2, 4, 5, -1, 8, 1] => I have 2 pairs [-8,8] and [-1, 1]; what will be result in my example?
I am trying to see the big picture.
hey Remo,
I think I get better understanting.
What will happen in case of
[3, 6, -8, -2, 4, 5, -1, 8, 1] what will be the return?
hello,
I just improved the solution. please have a look;
https://www.codewars.com/kumite/5d6b91162a1ef80019e43542
I found a bit confuse :
in every math formula or in Matlab the symbol ^ is means "exponential"
but in Python or Javascript symbol ^ is means XOR , better to write a note/legend to explain is exponential : symbol "**"