摘要:
function BinarySearchTree() { var Node = function(key) { this.key = key; this.left = null; this.right = null; } var root = null; var insertNode = f... 阅读全文
摘要:
function ArrayList() { var array = []; this.swap = function(index1, index2) { var aux = array[index1]; array[index1] = array[index2]; array[index2]... 阅读全文
摘要:
function DoublyLinkedList() { var Node = function(element) { this.element = element; this.next = null; this.prev = null } var length = 0; var head ... 阅读全文
摘要:
function LinkedList() { var Node = function(element) { this.element = element; this.next = null } var length = 0; var head = null; this.append = fun... 阅读全文