Sobes.tech
Junior — Middle+

Counting the number of characters in an array of strings

livecode

Task condition

It is required to implement a function that:

  • Accepts an array (slice) of strings, which may contain Latin letters, Cyrillic characters, and digits.
  • Returns the number of characters in each string.
  • Correctly handles empty strings and strings containing mixed types of characters.

The function should work regardless of which of the listed sets of characters are present in a particular string.