Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions for bit enumeration #493

Closed
wants to merge 1 commit into from
Closed

Conversation

paiv
Copy link
Contributor

@paiv paiv commented Oct 5, 2021

"leftmost bit" is the most significant bit, whereas the exercise is designed for least significant bit.

for _ in 1...8 {
if bits.isMultiple(of: 2) {
order = flipper(order)
} else {
order = rotator(order)
}
bits /= 2
}

Upd: just have seen this discussed in #496

@kytrinyx
Copy link
Member

kytrinyx commented Dec 2, 2022

I'm going to go ahead and close as this is a duplicate. Thank you ❤️

@kytrinyx kytrinyx closed this Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants