Exemplo n.º 1
0
    public int solution(int N)
    {
        var binary          = Convert.ToString(N, 2);
        var binaryGapFinder = new BinaryGapFinder();

        return(binaryGapFinder.FindBinaryGap(binary));
    }
 public BinaryGapShould()
 {
     _binaryGapFinder = new BinaryGapFinder();
 }