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.
Yeah, I know that the pattern seems quite complicated to crack, but I already found some regularities, also, I really want mine brainfuck katas to actually be challenging, so if you can simply make all of them with just a transpiler, that's not really great... That's in fact the main reason I did that, to really avoid transpiler succeeding instantly.
I did do some research into that, but the pattern is not trivial: https://oeis.org/A002326
I have some ideas of what might be slowing down my algorithm, though I don't know whether such strict performance is a good idea
Actually I set up the performance requirements high enough so my code passes in ~10s, I did this to encourage making handwritted programs at first and to really search a way of applying the algorithm smartly. Moreover, I'm actually doing some researches on the period of the cycle depending on the length of the string, that could optimize the code WAAAAY more as you could simply take the modulo of n, so this is also to encourage doing this kind of researches that I did that, as I'm pretty sure that even my solution is really bad in fact.
I am not sure if there is a specific method you want to enforce, but the performance requirements seem very high on this kata? Or perhaps I am getting something wrong?
Lol, thanks!
Typo in description:
algotihm
:D Nice kata btw
Lol, yes I write my codes by hand, it wouldn't be as fun otherwise!
Great solution btw, it is really faster than mine!
Yes! Thank you, I wrote the initial code quite rapidly and completly forgot that the last char of the first input would be null so it would not enter the second loop lol
That seems like a huge mistake for someone coding in BF 😅
The initial code (
,[>,][>,]
) doesnt actually accept both input strings, only the first one.Did your macros write this? It looks handwrittenSorry I mixed you up with YurichBro, you said before you handwrite your sols :DFor my transpiler I wrote all the macros myself, so I did not lose the 'challenging' part by using it. I built everything up from logical operations and got some relatively complex stuff.
The point of coding in BF was never to simply achieve the task (otherwise why on earth would you choose BF), the point is the challenge of completing it in BF. Sure some might use a transpiler to generate code, but it is more fun to do it without.
Additionally, it is fun to try golf solutions as small as possible, since transpilers generally produce extremely long solutions.
https://www.codewars.com/kata/59f9cad032b8b91e12000035
Thing is, once you have this kind of tool, coding in BF becomes pointless.
Loading more items...