{"id":18603739,"url":"https://github.com/abdullahselek/linkedlistcxx","last_synced_at":"2025-05-16T18:33:22.957Z","repository":{"id":71933023,"uuid":"91980404","full_name":"abdullahselek/linkedlistcxx","owner":"abdullahselek","description":"C++ generic LinkedList implementation.","archived":false,"fork":false,"pushed_at":"2017-06-10T08:12:30.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-26T23:26:33.171Z","etag":null,"topics":["cpp","generic","library","linkedlist"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullahselek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-21T18:58:52.000Z","updated_at":"2017-06-03T08:14:42.000Z","dependencies_parsed_at":"2023-05-23T06:00:43.233Z","dependency_job_id":null,"html_url":"https://github.com/abdullahselek/linkedlistcxx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Flinkedlistcxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Flinkedlistcxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Flinkedlistcxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Flinkedlistcxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/linkedlistcxx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394672,"owners_count":19631117,"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":["cpp","generic","library","linkedlist"],"created_at":"2024-11-07T02:15:23.533Z","updated_at":"2025-02-18T01:45:51.471Z","avatar_url":"https://github.com/abdullahselek.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linkedlistcxx\n\n[![Build Status](https://travis-ci.org/abdullahselek/linkedlistcxx.svg?branch=master)](https://travis-ci.org/abdullahselek/linkedlistcxx)\n[![Build status](https://ci.appveyor.com/api/projects/status/5ku2a2q2kjcvlr1u?svg=true)](https://ci.appveyor.com/project/abdullahselek/linkedlistcxx)\n\nLinkedList implementation with C++ as a library.\n\n## Building Repository\n\nTo build the repository you need CMake. You can download from [here](https://cmake.org/download/).\nYou can create a shortcut ```cmake``` command for macOS as below\n\n```\nsudo mkdir -p /usr/local/bin\nsudo /Applications/CMake.app/Contents/bin/cmake-gui --install=/usr/local/bin\n```\n\nAfter cloning repository to your own local machine go to project root folder and run\n\n```\ncmake .\n```\n\nand then\n\n```\ncmake --build .\n```\n\nto run unit tests for UNIX machines\n\n```\ncd test\n./tests --gtest_color=yes\n```\n\nand for Windows machines\n\n```\ncd test/Debug/\ntests.exe --gtest_color=yes\n```\n\n## Sample Usage\n\nInitiate linkedlist as below\n\n```\nLinkedList\u003cstd::string\u003e *linkedList = new LinkedList\u003cstd::string\u003e();\n```\n\nInitiation of Node\n\n```\nstd::string strNext(\"next\");\nstd::string strNode(\"node\");\n\nNode\u003cstd::string\u003e *next = new Node\u003cstd::string\u003e(strNext, nullptr);\nNode\u003cstd::string\u003e *node = new Node\u003cstd::string\u003e(strNode, next);\n```\n\nAdding first node\n\n```\nstd::string strFirst(\"first\");\nNode\u003cstd::string\u003e *first = new Node\u003cstd::string\u003e(strFirst, nullptr);\nlinkedList-\u003eaddFirst(first);\n```\n\nGetting first node's data\n\n```\nstd::string data = linkedList-\u003egetFirst();\n```\n\nRemoving head from LinkedList\n\n```\nstd::string headData = linkedList-\u003eremoveFirst()\n```\n\nAdding last node\n\n```\nstd::string strLast(\"last\");\nNode\u003cstd::string\u003e *last = new Node\u003cstd::string\u003e(strLast, nullptr);\n```\n\nAdding data as node\n\n```\nstd::string last(\"last\");\nstd::string head(\"head\");\nlinkedList-\u003eadd(nullptr, head);\nlinkedList-\u003eadd(linkedList-\u003egetHead(), last);\n```\n\nClear LinkedList\n\n```\nlinkedList-\u003eclear();\n```\n\nSearching for node data\n\n```\nstd::string mid(\"mid\");\nNode\u003cstd::string\u003e *foundNode = linkedList-\u003esearchNode(mid);\n```\n\nDelete node\n\n```\nstd::string mid(\"mid\");\nNode\u003cstd::string\u003e *node = linkedList-\u003esearchNode(mid);\nbool isDeleted = linkedList-\u003edeleteNode(node);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Flinkedlistcxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Flinkedlistcxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Flinkedlistcxx/lists"}