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.
thanks a lot
Hi there.
sumIntervals( [
[1, 5],
[10, 20],
[1, 6],
[16, 19],
[5, 11]
] ) => 19
could you help me?
I dont understand how to parse it, what are arrays overlapping.
Hi there.
I dont understand
1 test has to equal 8
2 test has to equal 8
3 test has to equal 100_000_040. For example {-4, 1}: 1 - (- 4) = 5 :> -4, -3, -2, -1, 0, interval is 5,
What do i do wrong?
Golang
it is cheat =)
good job
thank you a lot.
I ve done this kata
Hello.
My program has done tests which was wrong
For example wrong test:
Exptected:
{6, 9, 11}
Equal:
{0, 6, 9, 11}
My test has done:
Expect(ArrayDiff([]int{6, 9, 7, 0, 11}, []int{-2, 7, 18, -1, 16, -19, 3, -18, -5})).To(Equal([]int{6, 9, 11})), passed
Expect(ArrayDiff([]int{-18, 9, 13, 1, 6, 13, -5, 17, -4, -10, -10, -1, 3, 12, -4, 10, 0, -15}, {3, 19})).To(Equal([]int{6, 9, 11})), passed
Why?
its amazing, thank you!
This is cheat! 👍😉
Pretty nice, thanks for yours solution