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.
Use Node 8, it doesn't work on Node 10
generateRandomBinaryData
andgenerateRandomReadableStrings
doesn't exist in Typescript (not available inglobal
nor as an import)just as a feedback (I know it wouldn't matter at this point), but would be much better for
read
to return array of bytes (think Buffer) andwrite
should write bytes as well, meaning a value bigger than 255 take more than "one allocated memory". withwrite(0, 'aaa')
to allocated(4) would then return['a', 'a', 'a']
on read andwrite(0, 'ababab')
would either throw (aka buffer overflow) or return "safely allocated data", like['a','b','a','b']
. It would be much closer to a real memory pointer management IMHOdone!
done, it should be pretty different from the "Hello World!" one, since I disabled operators as well
the error message is pretty clear on what went wrong now
alright, I'm editing the error output, and removing Object, Array and RegExp as well their literals
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution