I am aware this problem has been asked before but in java e.g Printing longest sequence of zeroesPrinting longest sequence of zeroes. This is a similar problem but in C#. A brief explanation of the problem is to find the longest sequence of zeroes in a binary representation of an Integer. For instance, the Integer 529 in binary gives 1000010001 and the longest sequence of zeroes is 4. So far I have achieved this using the following code
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/