Ad
  • Custom User Avatar

    Take a look at the comments in solution setup: you are not meant to allocate any memory, but you are expected to use the doubled buffer and write your answer into it, and then return the doubled.

    Your solution is almost correct, you just should write to doubled without malloc-ing it.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution