I'm disturbed you believe regurgitating code snippets is plagiarisation.
I feel like you're arguing in bad faith. So, whatever.
SO’s license requires attribution.
If you don’t want to be a plagiarist, you either need to include attribution, or you need to rewrite the solution in entirely your own words.
> You should write code sometimes to solve a complex problem
There’s a very high chance you posted your comment from a device using code I wrote.
Glueing together plagiarized code copied from SO, or stolen from OSS projects on GitHub, is not software engineering.