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

Add dominoes exercise #167

Open
keiravillekode opened this issue Feb 26, 2025 · 0 comments
Open

Add dominoes exercise #167

keiravillekode opened this issue Feb 26, 2025 · 0 comments
Assignees

Comments

@keiravillekode
Copy link
Contributor

keiravillekode commented Feb 26, 2025

Each stone can be represented in a single byte: 4 bits for each half.

[[1, 2], [3, 1], [2, 3]] can become "\12\31\23"

We pass in dominoesOffset, dominoesCount

The result:

  ;; @returns {i32} 1 if can chain, 0 otherwise

instructions.append.md can mention that half a byte is known as a nibble

@keiravillekode keiravillekode self-assigned this Feb 26, 2025
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

No branches or pull requests

1 participant