58.Length of Last Word:修订历史

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2024年2月19日 (星期一)

  • 当前之前 14:452024年2月19日 (一) 14:45Riguz 讨论 贡献 2,392字节 +1,084 →‎Two-pointers
  • 当前之前 14:352024年2月19日 (一) 14:35Riguz 讨论 贡献 1,308字节 +1,308 创建页面,内容为“=Description= {{LeetCode |id=length-of-last-word |no=58 |difficulty=Easy |category=String |collection=Top 150 |title=Length of Last Word |summary=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 consisting of non-space characters only. Example 1: <syntaxhighlight lang="bash"> Input: s = "Hello World" Output: 5 </syntaxhighlight> Explanation: The last word is "World" with length…”