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 spiral-matrix exercise #135

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Oct 7, 2024

There might be a solution based on modulo arithmetic or something, but I was curious to see how to update a matrix step by step. I suppose Roc does this efficiently under the hood (i.e., it just updates the same matrix, it doesn't allocate new ones, right?).

Copy link
Contributor

@isaacvando isaacvando left a comment

Choose a reason for hiding this comment

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

LGTM. As long as the matrix has a reference count of 1, I believe it will be updated in place.

@isaacvando isaacvando merged commit 8c045c8 into exercism:main Oct 9, 2024
4 checks passed
@ageron ageron deleted the add-spiral-matrix branch October 9, 2024 19:29
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.

3 participants