TheAlgorithms/Java

[FEATURE REQUEST] <Implementation of binary to gray algorithm>

subham-behera opened this issue · 0 comments

What would you like to Propose?

I want to implement the binary-to-gray conversion algorithm.

Issue details

This algorithm converts binary numbers to gray code, which is a binary system with a one-bit difference between consecutive values.

Additional Information

Test Case:
Here is an example:
Binary:100101
Gray:110111