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.
This comment is hidden because it contains spoiler information about the solution
.
Yeah, I don't know how finding a square root is a binary operation.
in random tests used same array for solution and 'funk'. im added wrapper that copy array of family members
What means sqrt ranges?
This comment is hidden because it contains spoiler information about the solution
Sorry, but I think this Kata is too much strict about performance (C++), or maybe the test dataset is really huge. My code does zero extra operations, I use references when possible. Still it fails at big_ranges_test - sqrt_ranges. I don't think there is need to be so strict, when my code is producing exact results, and is pretty effective...
associative operation may not have an identity, think about (x,y) => x
Sure! Without this one, the code is more complicated than expected.
I guess it's your implementation's problem. I faced the same but changed something in data structure and now it works. I'm sure it's because function composition and matrix multiplication are non-commutative so the order of evalutation should be preserved.
I didn't have problems with min though.
TypeScript translation (literal translation of JavaScript)
Types are a bit hacky in the function composition tests, but I could not think of a solution. Feel free to improve upon this.
just remove
using namespace std;
try add#include <algorithm>
Yes, it is possible (did it just now).
Loading more items...