Copying programming problems (with proper citation) in order to write explanations on how to solve them in a blog/website.
<p>I will be doing two things:</p>

<ul>
<li><p>Make a blog/website and copy and paste algorithmic questions and other programming problems word by word (could be from books or other websites) and properly cite them. Something like: this question appeared in this book and it asks us to do this thing and this is how I solved it..</p></li>
<li><p>Find solutions for those problems and explain them in an article or video online and put them behind a paywall. </p></li>
</ul>

<p>will I be infringing any copyright law? if yes, how can I do something similar without hurting someone else?</p>

<p>Such written questions are, in general, protected by copyright, and you cannot reproduce them word-for-word unless you have permission, or some other legitimate basis. Nor can you reproduce them in a close paraphrase, with just a few words changed. That is still an infringement of copyright.</p>

<p>If you are in the US (you don't indicate your jurisdiction, and it makes a difference) such use <strong>might</strong> be defensible as fair use. Fair use is described in some detail in <a href="https://law.stackexchange.com/questions/32422/is-this-copyright-infringement-is-it-fair-use-what-if-i-dont-make-any-money-o">this question and its answer</a>. Whether copying counts as fair use depends very much on the exact details of the situation, and a general question can never give an answer that can be depended on. That your planned use would be for instruction tends to support the case for fair use. If it is the case that it would not harm the market for the original, that would also tend to support the case for fair use. That the original was factual rather than imaginative or dramatic also inclines a bit towards fair use. If your use is for profit that tends to incline against fair use.</p>

<p>If you are not in the US, there is a somewhat similar concept called "fair dealing" in the UK and Europe. The rules for that are significantly different, and it tends to be less inclusive, as I understand it.</p>

<p>Why not consider reworking the questions, using the ideas from your sources, but not copying word for word, or even in a very close paraphrase? That would be much less likely to infringe copyright, and expose you to a lawsuit.</p>

<p>If you are in doubt, you would be wise to consult a lawyer knowledgeable about copyright. You could describe in detail your plans, and get advice you could better depend on.</p>

united-states copyright intellectual-property commerce