{"id":25470150,"url":"https://github.com/thinkphp/linkedlist","last_synced_at":"2025-11-04T18:30:29.960Z","repository":{"id":2682137,"uuid":"3674551","full_name":"thinkphp/LinkedList","owner":"thinkphp","description":"Linked List Implementation in MooTools","archived":false,"fork":false,"pushed_at":"2012-03-14T17:58:51.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T14:54:26.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://thinkphp.github.com/LinkedList/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-09T20:35:17.000Z","updated_at":"2014-05-10T01:26:38.000Z","dependencies_parsed_at":"2022-08-28T12:22:22.052Z","dependency_job_id":null,"html_url":"https://github.com/thinkphp/LinkedList","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FLinkedList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FLinkedList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FLinkedList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkphp%2FLinkedList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkphp","download_url":"https://codeload.github.com/thinkphp/LinkedList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437226,"owners_count":19638449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-18T08:32:09.198Z","updated_at":"2025-11-04T18:30:29.925Z","avatar_url":"https://github.com/thinkphp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"LinkedList\n==========\n\nLinked List implementation in MooTools. A linked list is a set of items where each item is part of a node that also contains a link to a node.\nWhen our primary interest is to go through a collection of items sequentially, one by one, we can organize the items as a linked list:\na basic data structure where each item contains the information that we need to get to the next item. The primary advantage of linked lists\nover arrays is that the links provide us with the capability to rearrange the items efficiently. This flexivility is gained at the\nexpense of quick access to any arbitrary item in the list, because the only way to get to an item in the list is to follow links from the\nbeginning. \n\n![Screenshot](http://farm8.staticflickr.com/7062/6821387570_d805710a33_b.jpg)\n\nHow to use\n----------\n\nFirst you must to include the JS files in the head of your HTML document.\n\n        #HEAD\n        \u003cscript src=\"http://www.google.com/jsapi?key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\"\u003egoogle.load(\"mootools\", \"1.4.5\");\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"LinkedList.js\"\u003e\u003c/script\u003e\n\nThen\n\n        #js\n        var mylist = new LinkedList();\n            mylist.insertAtHead(\"mootools\");\n            mylist.insertAtHead(\"jQuery\");\n            mylist.insertAtHead(\"dojo\");\n            mylist.insertAtHead(\"extjs\");\n            mylist.insertAtHead(\"yui\");\n            log(mylist.display())\n            mylist.reverse();\n            log(mylist.display()) \n            log(mylist.search(2))\n            mylist.remove(2); \n            log(mylist.display())\n            log(mylist.search(2))\n\nThen\n\n        #output:\n        \u003eyui,extjs,dojo,jQuery,mootools\n        \u003emootools,jQuery,dojo,extjs,yui\n        \u003edojo\n        \u003emootools,jQuery,extjs,yui\n        \u003eextjs\n\nReferences:\n\n- http://en.wikipedia.org/wiki/Linked_list#Post_office_box_analogy\n- http://www.informit.com/store/product.aspx?isbn=0201350882\n        ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Flinkedlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkphp%2Flinkedlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkphp%2Flinkedlist/lists"}