We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
number[]
string[]
1 parent e798afc commit 630d318Copy full SHA for 630d318
Bit-Manipulation/GrayCodes.js
@@ -1,7 +1,7 @@
1
/**
2
* Generates a Gray code sequence for the given number of bits.
3
* @param {number} n - The number of bits in the Gray code sequence.
4
- * @returns {string[]} - An array of Gray codes in binary format.
+ * @returns {number[]} - An array of Gray codes in binary format.
5
*/
6
function generateGrayCodes(n) {
7
if (n <= 0) {
0 commit comments