Re: [闲聊] 每日leetcode

楼主: SecondRun (雨夜琴声)   2024-04-01 10:17:25
58.Length of Last Word
找出字串s里最后面一个字的长度
想法:没有
public class Solution {
public int LengthOfLastWord(string s) {
return s.Trim().Split(' ').Last().Length;
}
}
我只会EZ
作者: digua (地瓜)   2023-04-01 10:17:00
大师
作者: jensheng09 (甲甲都从后面来)   2024-04-01 10:20:00
大帅
作者: YukihanaLami (lami snowflake)   2024-04-01 10:38:00
大师
作者: DJYOSHITAKA (Evans)   2024-04-01 10:57:00
大湿

Links booklink

Contact Us: admin [ a t ] ucptt.com