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.
damn, saw math.max and it was described as method for only two integer's
I feel like an idiot after seeing this
you are right, sorry for that, we can't swap the operands.
And how would you get 9? Remember it's
a ? b ? c
where a=1, b=3 and c=2, you can add some parentheses tootry to check with
a = 1
b = 3
c = 2
you will see 8, not 9
You can change the operations, but the operands order is always a, b and c.
Incorrect when:
a = 1
b = 3
c = 2
biggest number is:
b * (a + c)
your solution would fail if
i==0 and a[i]==0
but you are starting your IntStream from 1