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 description has
We have to write cumbersone a < b && b < c && c < d instead of simply a < b < c.
However, these are not equivalent, as there nod
in the second expression.I've passed all tests except random with results:
Expected: false
Actual : true
That's not too much clear. In most katas we can make debug output of incoming data, but here incoming data is the expression itsels.
Then question: how can I see the case I failed on?
Great kata, had a lot of fun solving it but I would propose to choose a few operators you will be using and pointing them out in the description because in the end we are basically doing the same thing for every operator which is not as fun.
I'm completely stumped by exit code 139, presumably a segfault, running the sample tests in the web interface. I can't reproduce locally and valgrind/ubsan/asan don't see anything wrong in my code. My code does no heap allocations and the vector indexing in the sample tests dont overrun the vector. So haven't a clue. I'm using g++ 7.3 and clang++ 6.0.
Not posting the solution code here (yet), but here's the steps I'm taking locally:
This comment is hidden because it contains spoiler information about the solution