Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Educational content: kickstart builtin track with bitwise exercise #200

Merged
merged 4 commits into from
Jun 15, 2022

Conversation

tekkac
Copy link
Contributor

@tekkac tekkac commented Jun 15, 2022

Close #137

@Bernardstanislas Bernardstanislas changed the title Educational content: kicktart builtin track with bitwise exercise Educational content: kickstart builtin track with bitwise exercise Jun 15, 2022
Copy link
Contributor

@Bernardstanislas Bernardstanislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!!

let (local r5) = get_nth_bit(value, 5)
let (local r6) = get_nth_bit(value, 6)
let (local r7) = get_nth_bit(value, 7)
assert r0 * 2 ** 0 + r1 * 2 ** 1 + r2 * 2 ** 2 + r3 * 2 ** 3 + r4 * 2 ** 4 + r5 * 2 ** 5 + r6 * 2 ** 6 + r7 * 2 ** 7 = value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Bernardstanislas Bernardstanislas merged commit 5003140 into main Jun 15, 2022
@Bernardstanislas Bernardstanislas deleted the feature/bitwise-builtin branch June 15, 2022 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bitwise operations basic exercise
2 participants