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

Mixed juices #277

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Mixed juices #277

wants to merge 2 commits into from

Conversation

colinleach
Copy link
Contributor

Finding an exercise that illustrates loops and runs cleanly in the test runner has been a problem. This one feels quite contrived in places, but it's the best I've got at present.

Students are free to implement this in other ways, but will likely not be aware of cumsum() or lapply() at this point in the syllabus. Also: I tried using these in a test implementation, and it needed lots of if statements to handle all the edge cases.

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.

1 participant