Ad
  • Default User Avatar

    i'm sorry, this is my fault; the assertion message was incorrect when n > 254, and the memory was not reset at every test, which caused confusing assertions

    I fixed that and republished. Your code is still wrong though, for the reason I said.

  • Default User Avatar

    you have to generate shades even when n is larger than 254, it's just that you stop at 254