Gray Code Sequence
Medium
Recursion Fundamentals
Print an n-bit Gray code sequence as decimal numbers, starting at 0, where consecutive values differ in exactly one bit. Use the standard reflected construction.
Constraints
1 <= n <= 16
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.