Problem 58 · Easy

Length of Last Word

Return the length of the last word in a string. The visual skips trailing spaces from the right and counts the final run of letters.

Open the interactive visualisation