3
votes
5answers
1k views

Is “watermarking” code with random trailing whitespace a good way to detect plagiarism?

Consider this: int f(int x) { return 2 * x * x; } and this int squareAndDouble(int y) { return 2*y*y; } If you found these in independent bodies of code, you ...