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.
The kata test solutions are wrong, no? Shouldn't this Kata also include distance if j is 0 and i is len(data)?
e.g: Expect(LargestDifference([]int{78, 88, 64, 94, 17, 91, 57, 69, 38, 62, 13, 17, 35, 15, 20})).To(Equal(10))
This should equal 15 as there is a pair of numbers, data[0] and data[14] which are equal to 78 and 20 respectively, so the distance should be len(data).
Please correct me if I'm wrong
Hello,
I have solved the Kata using recursion, but for some reason it doesn't pass the test even though it passes the test on Go playground and local development, could you check if it works properly?