Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
21.3K+ articles
Misc
8.5K+ articles
Strings
3.0K+ articles
GATE CS
1.4K+ articles
Bit Magic
1.2K+ articles
Bitwise-XOR
443+ articles
Digital Logic
353+ articles
Backtracking
239+ articles
binary-representation
154+ articles
gray-code
6 posts
Recent Articles
Popular Articles
Code Converters - Binary to/from Gray Code
Last Updated: 07 April 2025
In this article, we will go through Code Converters - Binary to/from Gray Code, we will start our article by defining Code converters, Binary code and Gray code, and then ...
read more
Misc
GATE CS
Digital Logic
gray-code
A backtracking approach to generate n bit Gray Codes
Last Updated: 05 February 2024
Given a number n, the task is to generate n bit Gray codes (generate bit patterns from 0 to 2^n-1 such that successive patterns differ by one bit)Examples:Input : 2 Output...
read more
Misc
Bit Magic
Backtracking
DSA
gray-code
Binary to Gray code using recursion
Last Updated: 17 March 2025
Given the Binary code of a number as a decimal number, we need to convert this into its equivalent Gray Code.Assume that the binary number is in the range of integers. For...
read more
Misc
Recursion
DSA
binary-representation
gray-code
Decimal Equivalent of Gray Code and its Inverse
Last Updated: 07 March 2023
Given a decimal number n. Find the gray code of this number in decimal form.Examples:Input : 7Output : 4Explanation: 7 is represented as 111 in binary form. The equivalent...
read more
Misc
Bit Magic
Mathematical
Technical Scripter
DSA
binary-representation
base-conversion
gray-code
Generate n-bit Gray Codes
Last Updated: 03 February 2023
Given a number N, generate bit patterns from 0 to 2^N-1 such that successive patterns differ by one bit.Examples:Input: N = 2Output: 00 01 11 10Input: N = 3Output: 000 001...
read more
Strings
Bit Magic
DSA
Microsoft
Amazon
gray-code
Gray to Binary and Binary to Gray conversion
Last Updated: 03 February 2025
Binary Number is the default way to store numbers, but in many applications, binary numbers are difficult to use and a variety of binary numbers is needed. This is where G...
read more
Bit Magic
Mathematical
DSA
binary-representation
Bitwise-XOR
gray-code
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !