Skip to content

[Go] solution_2 can someone elaborate? #429

Answered by ssovest
jdemchuk asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. Factor and q represent indices, not numbers themselves. This allows the program not to store even numbers and not to convert a number to its index on every assignment. And inverse logic is there just because Go initialises all elements to 0, so it would be a waste of resources to re-initialize the whole array to 0xff.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jdemchuk
Comment options

Answer selected by jdemchuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants