※ 引述《SecondRun (南爹抠打)》之铭言:
: 58.Length of Last Word
: 找出字串s里最后面一个字的长度
: 想法:没有
Code:
(define (length-of-last-word s)
(let* ((trimmed (string-trim s))
(words (string-split trimmed))
(last-word (last words)))
(string-length last-word)))
愚人节用奇怪的语言解题
Racket这到底什么语言
解出来 182ms 101.27MB ==