This comment is hidden because it contains spoiler information about the solution
Lua translation kumited! Can you review and approve, please? :)
When you perform the & binary operation on 1, you get the least significant binary digit of the number. If that number is even, the digit will be zero, otherwise it will be one.
It looks a clever solution but I cannot figure it out how it works..
It said "Your expected outputs: an array of positive integers from 1 to n" in the description. I think it would be good to notice "...integers from 1 to including n."
You should update the instructions to say what to do if n does not fit any of the other requirements
What? It's still the same.
C translation kumited! :)
Not fixed yet?
@MichaelCPell: You have to answer und to close the issue by answering.
Please check and approve it! :-)