تنفيذ JavaScript لقائمة واحدة مرتبطة (LinkedList)
المكتبات ذات الصلة NPMJS:
قائمة معقدة ، قائمة ذكية ، قائمة متصلة منفردة
أفكار البرمجة:
تنفيذك الخاص:
singlenode.js
(function () {"use strict" ؛ function node (element) {this.element = element ؛ this.next = null ؛} module.exports = node ؛}) () ؛LinkedList.js
(function () {"use strict" ؛ var node = require ("./ lib/singlenode") ؛ function linkedList () {this._head = new node ("This is head node.") ؛ this._size ؛ LinkedList.Protype.Remove = IMT (IF) {var prenode = this.findpre وظيفة (ite) Finder.next = newNode ؛ currnode ؛ إرجاع null ؛تنفيذ JavaScript من DoubleLinkedList
المكتبات ذات الصلة NPMJS:
قائمة معقدة ، قائمة ذكية
أفكار البرمجة:
تطبيقك الخاص
doublenode.js
(function () {"use Strict" ؛ function node (element) {this.element = element ؛ this.next = null ؛ this.previous = null ؛} module.exports = node ؛}) () ؛DoubleLinkedList.js
(function () {"use strict" ؛ var node = require ("./ lib/doublenode") ؛ function doubleLinkedList () {this._head = new node ("This is head node.") ؛ function () doublinkedlist.protype. node.previous الوظيفة (IF (ite) هذا. } ؛ this.gethead ().