所有公开日志

所有WHY42公开日志的联合展示。您可以通过选择日志类型、输入用户名(区分大小写)或相关页面(区分大小写)筛选日志条目。

日志
  • 2024年2月19日 (一) 14:35 Riguz 讨论 贡献创建了页面58.Length of Last Word (创建页面,内容为“=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…”)