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