Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • \$\begingroup\$ Outputs 1 1 0 for 1 it should be 1 0 \$\endgroup\$ Commented Jul 27, 2017 at 16:17
  • \$\begingroup\$ I must have missed that in the specc. I would think that N=0 would give 1 0. There are other solutions here that output 1 1 0 as well for N=1. Anyway, I will work on making it conform with the specc. \$\endgroup\$ Commented Jul 27, 2017 at 16:42
  • \$\begingroup\$ You did not misread the spec, it got changed. I have commented about it. \$\endgroup\$ Commented Jul 27, 2017 at 16:48