Heapify all nodes in Common Lisp

前端 未结 0 793
滥情空心
滥情空心 2021-01-08 00:40
(defun heapify (heap i)
  (let ((r (right i))
    (l (left i))
    (smallest i)
    (n (heap-size heap)))
    (if (and (< l n)
        (less l i))
        (setf s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题