Wednesday, July 30, 2008

Symmetry

Just wanted to save a nice expression I read about yesterday:

  1. 1 << n >> 1  


The value returned is 2^n/2, or 2^(n-1). I just thought it looked lovely :)

No comments: