Can I include problem statements when posting exercise solutions to Code Review?
<h2>Short Version</h2>

<p>I have several books of programming exercises that I am working through. I would like to post some of my solutions to <a href="https://codereview.stackexchange.com/">Code Review</a>. Can I include problem statements along with my solutions without running afoul of copyright law?</p>

<h2>Longer Version</h2>

<p>Most of each post would be my own work, but I would be including the statement of the problem/exercise from a book. My understanding of fair use is that if I were to do this for a single question/exercise then that would constitute fair use. However if I were to write my own solutions manual which included all of the exercises/problem-statements from the the book then that may violate fair use. Assuming that's an accurate description, I'm still unclear on whether or not posting all (or a significant number) of the questions from a single book to Code Review would violate fair use, since they wouldn't form a single document.</p>

<p>Is the number of such posts I make a factor when determining fair use? Could I post every question statement or would that be going too far? Does the fact that the questions are posted to the same site (StackExchange) mean that they can be considered as a single collection?</p>

<h2>References</h2>

<p>I posted an almost identical version of this question to the Code Review Meta site, but asking whether or not this would violate their posting policy:</p>

<p><a href="https://codereview.meta.stackexchange.com/questions/8827/can-i-include-problem-statements-when-posting-exercise-solutions-to-code-review">Can I include problem statements when posting exercise solutions to Code Review? (without violating site policy)</a></p>

<p>Here is a related post from the <a href="https://academia.stackexchange.com">Academia StackExchange</a>:</p>

<p><a href="https://academia.stackexchange.com/questions/20555/is-it-acceptable-to-take-some-exercises-directly-from-the-text-book-when-prepari">Is it acceptable to take some exercises directly from the text book when preparing exercise sheets?</a></p>

<p>I am not a lawyer. I am not your lawyer.</p>

<p>If all concerned parties are American, this is a textbook example of fair use and you do not violate copyright by posting excerpts from the book to discuss what is essentially your commentary on them.</p>

<p>My understanding of fair use is that it's somewhat fuzzy and relies on a number of tests to gauge the nature of the use rather than a fixed set of requirements, which might be more easily gamed. Some of the tests which you might be subjected to if your use were to be checked for infringement might include:</p>

<ul>
<li>is what was taken an insignificant amount of the entire work?</li>
<li>is reference made to the original work?</li>
<li>is your work transformative, changing the original into something new?</li>
<li>is your purpose non-commercial, that is, not one aimed at deriving directly related economic benefits?</li>
</ul>

<p>If you can safely answer "yes" to all of the above, you're safe. If the below is your plan, you are not:</p>

<ol>
<li>Post all questions from the exercises</li>
<li>Posted questions do not reference the source text.</li>
<li>You post the bare questions, maybe even just cropped scans of the pages.</li>
<li>Your goal is to collect community answers and scrape them together in "Crazy igal's Cheat Sheet Companion" and then get rich selling copies to lazy teenagers</li>
</ol>

copyright online