Skip to content

Commit 630d318

Browse files
authored
The return value is a number[], not a string[]
1 parent e798afc commit 630d318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bit-Manipulation/GrayCodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Generates a Gray code sequence for the given number of bits.
33
* @param {number} n - The number of bits in the Gray code sequence.
4-
* @returns {string[]} - An array of Gray codes in binary format.
4+
* @returns {number[]} - An array of Gray codes in binary format.
55
*/
66
function generateGrayCodes(n) {
77
if (n <= 0) {

0 commit comments

Comments
 (0)