Skip to content

Commit

Permalink
series: Clarify edge case of zero-length substrings
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Sep 24, 2023
1 parent ec5f981 commit e675dcf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/practice/series/.docs/instructions.append.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Instructions append

What do you expect the result to be if the length of the substrings is zero?
There is no one right answer, but we expect you to output a number of empty strings:
one more than the length of the input string.
While not intuitive to everyone, this upholds the property that the number of substrings is one more than the length of the input string minus the length of the substrings.

0 comments on commit e675dcf

Please sign in to comment.