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.
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:
Good kata. You should have added sample tests with different comparison operators combined, e.g. i < 2*j > k or i == j <= k < l.
Good kata. But please add a sample test with a couple of intervals with negative values.
Solving this in C++ (MSVC 2017). Something wrong with this kata. Everything works fine locally, even for very long strings with long words. But here it fails with simplest input like "abc" or "abcd".