This gives in other katas Response received but no data was written to STDOUT or STDERR. , here works.
Response received but no data was written to STDOUT or STDERR.
Elixir translation. Number of tests and input sizes same as in other languages. I've tried several approaches and implementations and right now reference solution runs against tests in 7.5-8s + 2s standard overhead. Any reasonably tuned solution should pass, although not everything that does in other faster languages. If someone finds some potential speed-ups I'll add them.
This comment is hidden because it contains spoiler information about the solution
Result without benchmark setup is rather meaningless.
Also, please post the test case and your result so I can check.
Thanks for helping.
Strange behaviour, I copied all test values which I printed as you suggested and try locally, all seems good. But when I try running it here with same code, it says -Error: arrays first differed at element [##]; expected: #### but was: ####
Try printing the input array to see the test case.
Error: arrays first differed at element ; expected:<[b]wnryvzvogpwq> but was:<wnryvzvogpwq>
what could be the test values and what may the meaning of this error?
Have you seen the issue below? You solved the kata in JS so you should see this:
There are probably even more, these are most recent. Now so any translation would make sense the both currently available languages need to have their tests revamped and then any translation needs to follow the same way.
Maybe you just copied the body of the function I think.
why isn't the solution working locally? i just copied the solutions and ran it locally, to which it shows variable not defined error?
Yeah, I was thinking of the same dilemma.(but whatever the case the maximum difference of rank would be 1, as this would've rank of (5 | 6))
o_O and there's even some unsubmitted solution...