System.Blog.Martens.Ben

The Tech Blog of Ben Martens
Posts
  • System.Blog.Martens.Ben

    Brain Teaser #2

    • 6 Comments
    This brain teaser comes courtesy of a co-worker named Simeon Cran. Using C# and no branches, and no method calls , no allocations, and no unsafe code , write a method that takes a ulong and clears all the bits in it except the highest bit that was set...
Page 1 of 1 (1 items)