這個算法有一個令人印象深刻的名字,遊程編碼(run-length encoding)。 (defun compress (x) (if (consp x) (compr (car x) 1 (cdr x)) x)) (defun compr (elt n lst) ...
確定! 回上一頁