Commit 26e3e7d
committed
Adjustments and changes made to the
repeatStr function and its corresponding test cases to ensure that it handles various scenarios correctly, including edge cases such as a count of 0 and negative counts. The implementation now includes error handling for invalid input, and the test cases have been expanded to cover these new scenarios.1 parent 3372770 commit 26e3e7d
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments