Leetcode 58: Length of Last Word

This is an easy problem, iterate from end of string counting characters until we reach a space. I just wanted to make this post as a reminder to myself about creating a table of variable values when running through a test case before compiling/executing.

Alternative, more concise solution:
https://gist.github.com/adamkorg/eda4764ec11da3c3ce932e614636f224

This entry was posted in programming and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.