Ad
  • Custom User Avatar

    1 is not obvious. It's pointless.
    There's no real-world application to testing whether a string ends in a blank string.

    ANY string could be considered to 'end' in a blank string because adding a blank string to any string leaves it unchanged.
    For that matter, we could say that any string begins, ends, and has infinite blank strings between every element across its length!

    So why not test for and count all of them?
    Pointless.

  • Custom User Avatar

    1 is obvious too.

  • Custom User Avatar

    2 is obvious. Are you sure that needs clarification?