How can i create heapify (for heap-insert and heap-extract ) in lisp using hash tables *heaps*

后端 未结 0 1151
日久生厌
日久生厌 2021-01-04 03:17

(defun new-heap (heap-id &optional (capacity 42)) (or (gethash heap-id heaps) (setf (gethash heap-id heaps) (list \'heap heap-id 0 (make-array capacity

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