Skip to content

Add twelve-days exercise#107

Merged
keiravillekode merged 2 commits intoexercism:mainfrom
keiravillekode:twelve-days
Feb 7, 2026
Merged

Add twelve-days exercise#107
keiravillekode merged 2 commits intoexercism:mainfrom
keiravillekode:twelve-days

Conversation

@keiravillekode
Copy link
Contributor

No description provided.

Copy link
Contributor

@oxe-i oxe-i left a comment

Choose a reason for hiding this comment

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

Instead of working with lists, you could also use String.toSlice, then drop and take are O(1). A slice is a pointer to the original string plus a start and an end index.

In the end, you use String.Slice.copy to generate a String, which is O(n) only in the final size.

@keiravillekode keiravillekode merged commit 5bf6929 into exercism:main Feb 7, 2026
4 checks passed
@keiravillekode keiravillekode deleted the twelve-days branch February 7, 2026 11:06
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