Re: [闲聊] 每日leetcode

楼主: yam276 ('_')   2024-04-01 10:50:56
※ 引述《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 ==
作者: sustainer123 (caster)   2024-04-01 10:54:00
这啥奇怪语言
楼主: yam276 ('_')   2024-04-01 10:55:00
窝不知道 窝不清楚 好像是Lisp家族的function用法我都问gpt的
作者: SecondRun (雨夜琴声)   2024-04-01 11:41:00
好酷

Links booklink

Contact Us: admin [ a t ] ucptt.com