diff --git a/src/algorithms/linked-list/Linked-List.vue b/src/algorithms/linked-list/Linked-List.vue new file mode 100644 index 0000000..c172996 --- /dev/null +++ b/src/algorithms/linked-list/Linked-List.vue @@ -0,0 +1,397 @@ + + + + + \ No newline at end of file diff --git a/src/components/menu.vue b/src/components/menu.vue index d377540..86e203a 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -22,6 +22,7 @@ { id: 1, label: 'Home', route: '/' }, { id: 2, label: 'Searching Algorithm', route: '/search' }, { id: 3, label: 'Sorting Algorithm', route: '/sort' }, + { id: 4, label: 'Linked List', route: '/linked-list' }, // Add more menu items for other algorithms ]; diff --git a/src/routes/router.js b/src/routes/router.js index df27c7e..9e3eead 100644 --- a/src/routes/router.js +++ b/src/routes/router.js @@ -2,11 +2,13 @@ import { createRouter, createWebHistory } from 'vue-router'; import SearchView from './../algorithms/search/Search.vue'; import homeView from './../algorithms/algorithms.vue'; import SortView from './../algorithms/sort/Sort.vue'; +import LinkedList from './../algorithms/linked-list/Linked-List.vue'; const routes = [ { path: '/', component: homeView }, { path: '/search', component: SearchView }, { path: '/sort', component: SortView }, + { path: '/linked-list', component: LinkedList }, // Add more routes for other algorithm components ];