Ad
  • Custom User Avatar
  • Custom User Avatar

    Enforcing regex solutions would make it seriously more challenging :-)

  • Custom User Avatar

    Hi,

    Words are divided with spaces or line breaks

    • that is incorrect: punctutation should be in that sentence too
    • you didn't talk about the hyphen while you expect a specific behavior about it
    • what about "apostrophes"? (rather a suggestion than anything, but if you handle hyphens, that's weird to not find apostrophes)
    • You need to add random tests
    • I'm wondering if you should be more precise about the value of n when there are not enough words... The behavior is quite logical as is, but... For beginners, that could be better to state it. Not an obligation imo. Your call.