Skip to content

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