[LeetCode] Top Interview 150 Problems Solving # 58 Length of Last Word
Understanding the Problem
A string is given. It has spaces in between. The task is to return the last string’s length. If the string is s = “Hello world”, the last string will be ”world” and its length will be 5, so return 5.
Approach
My approach wil...
ramieeee.me1 min read