Solution to Length of Last Word by LeetCode

11 Jun

Question: https://oj.leetcode.com/problems/length-of-last-word/

Question Name: Length of Last Word

If strip() method is forbidden or unusable, we could do it like:

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!