My Favorite Math Problem
I came across one of my favorite math problems in high school and it blew my mind.<p><pre><code>    ABC
    DEF
  + GHI
  -----
   123J
</code></pre>
Each letter represents a distinct digit 0-9.  What is J?<p>Of course you can write a short program that iterates through the possibilities.  But there is also a very elegant solution that fits in a tweet.  (If you don&#x27;t want to try solving it, or have tried and have given up, here is the solution: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;joe_antognini&#x2F;status&#x2F;1436412147324502016" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;joe_antognini&#x2F;status&#x2F;1436412147324502016</a>)