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 don't know exactly what it could be, but I can tell you where my performance problem was. After I wrote a working solution I had a constant timeout on tests. The problem I had was that I chose the wrong algorithm for comparing
>
and<
, he was too ineffective. I implemented one algorithm for this and then just swapped if I needed to take>
:And yes, if I have the
<
algorithm implemented now, that means I had>
before. If anything, I was looking at the implementation from here. Try implementing<
if you currently have>
implemented.My guess is that you have an intermittent infinite BF loop (e.g. due to some non-zeroed vars). Try out the online BF debugger to diagnose: https://esolangpark.vercel.app/ide/brainfuck
This comment is hidden because it contains spoiler information about the solution
Thanks !
If I understand your question correctly. It has already been discussed here.
Precision needed....
Description says all variables are global, but... is it really possible to get a 'var' statement inside a bloc (like ifeq, etc.. ending with 'end') ?\
Good point!
I am out of town for a few weeks, but I will fix it when I get back.
Nice kata !
IMHO would deserve a better C++ prototype, though...
Returning a vector of vectors for a fixed size array of vectors is not the best option ...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
best solution
100% agree with uwdo: not a kyu 3, and... C interface is a pure code smell in modern C++
duplicate issue
This comment is hidden because it contains spoiler information about the solution
Nice kata for C++ training on parsers, error handling, and such.
With modern C++17 (variants and visitors, exception handling, string_view, and such) quite straightforward to
solve : just parse the way you describe the langage and... debug for errors.
Thus ... overranked IMHO
Note : would have needed a proper C++ translation (passing const std::string& and returning a std::string), pissed with those const char returning functions...*
Loading more items...