Ad
  • Custom User Avatar

    So I have code that is doing a simular thing to other. Show the expected out and the instead got, appears to be the same. I believe it's because there's an extra new line at the end. However this only breaks when the size is an odd number. Works for checkerboard(8), but breaking on checkerboard(5). Not sure how to show anyone my code properly. Additionally, I've been researching how to remove the last occurance of a line break, but can't seem to find anything.

    Used .trim() on my return statement, but that didn't work.

  • Custom User Avatar

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