Solving Leet code 58. Length of Last Word Day147
Today #Day147 of #365DaysOfCode, I am Solving Leet code 58. Length of Last Word.
Question
Given a string s consisting of words and spaces, return the length of the last word in the string.
A word is a maximal substring.
Example 1:
Input: s = "Hello W...
dheerajy1.hashnode.dev1 min read