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.
Issue with the PHP tests:
These incorrectly replace multiple consecutive input or output characters (
,
&.
) with just a singleputchar
/getchar
call.This is incorrect, as while reading multiple bytes from input would only store the last, it would still consume multiple bytes.
Same goes for the output: the written character would be the same each time, but it would still be written twice.
(The interpreter in the tests would print
Helo, World!
, with just a single 'l', for example).I could get my solution to pass by implementing the same error, but that is obviously not right.
Edit: Just noticed hotdonkey already reported this 9 months ago...
I thought of this when I looked at kyu level again after having a timeout error. No way you need to use algos for this level.
timeout error + 8 kyu = there's a simple brutforce
For the C translation, the tests expect us to return a newly-allocated character string, but never frees it. I know it doesn't free it now because the initial solution returns a statically allocated string instead and doesn't break the allocator.
A change to the function's interface or the initial solution would allow the tests to free the returned string instead of wasting that memory.
.
The tip for C: more memory,very more
completely changes the output? i dont even know how it gets the output its getting, i even tried changing compiler to match theres, and it outputs the correct answer
\n
(Thanks!)
ummmmm Expected: equal to "*p += 4;
"
Actual: "*p += 4;"
JS fork, please review:
Chai
;lodash
and replaceTest.randomNumber() % 8
by_.random(0, 7)
;assertStrictEqualPretty
function (thanks to @Hobovsky) for large inputs (but there's still a problem with the ~1MB input).GOD ! there are lots of talented people in here . I would never even think of this .
smart
In description it is told that repeated "." and "," commands must act like repeated commands
Example:
".." -> "putchar(*p);\nputchar(*p);\n"
However to pass random tests i had to combine them to one.
"...." -> "putchar(*p);\n"
So there is either missleading description or tests.
I have same error and I don't know what is wrong.
Loading more items...