Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Heads up: the gray_code function does not return the results shown in the table of correspondence above it.

I suspect that this is because both the table and the code used were sourced from Wikipedia, and they correspond to different Gray codes. The table is for the BRGC, but the implementation isn't.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: