> What constitutes as plagiarism and what doesn't, outside of what the law says, yes.
It’s pretty clear what it is.
The definition of plagiarism hasn’t changed since you were in grade school and were taught not to copy sentences into your papers.
If you still don’t understand what plagiarism is now, yours is a willful ignorance that doesn’t excuse unethical behavior.
> What about this, would copy pasting this verbatim be plagiarism
> https://stackoverflow.com/a/959004
Yes, that’d be plagiarism. It’s also bad code.
You should use the example to understand the underlying problem, at which point you will be well-equipped to write your own one-liner.
If you can’t write it using your own understanding of the problem, you’re not an adequate programmer and need to improve your skill-set … which won’t happen if you just keep plagiarizing code you don’t understand.