精華區beta Marginalman 關於我們 聯絡資訊
58.Length of Last Word 找出字串s裡最後面一個字的長度 想法:沒有 public class Solution { public int LengthOfLastWord(string s) { return s.Trim().Split(' ').Last().Length; } } 我只會EZ -- (づ′・ω・)づ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.51.52 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1711937847.A.250.html
digua: 大師 04/01 10:17
jensheng09: 大帥 04/01 10:20
YukihanaLami: 大師 04/01 10:38
DJYOSHITAKA: 大濕 04/01 10:57