Too Long; Didn't Read
Last week, while writing my <a href="https://medium.com/p/537cc8bb9f52" target="_blank">previous post</a>, I came across an interesting algorithm for reversing an integer. For example, it takes <code class="markup--code markup--p-code">10100011</code> and transform it into <code class="markup--code markup--p-code">11000101</code>. What’s cool about this algorithm, is that it does it in O(log n) iterations. This is the code: