Gray code: Difference between revisions
Content added Content deleted
m (Test results were overflowing the length of a line.) |
m (Corrected error in class name.) |
||
Line 3,154: | Line 3,154: | ||
import java.math.BigInteger; |
import java.math.BigInteger; |
||
public class |
public class GrayCode { |
||
public static long grayEncode(long n){ |
public static long grayEncode(long n){ |