Skip to content

mutopia7/linked-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— Linked List Implementation in JavaScript

This is a complete implementation of a Singly Linked List in JavaScript using ES6 class syntax. It's built entirely from scratch without using built-in array methods, and includes all core linked list operations as well as some extra credit features.


πŸ“š Features

  • βœ… Append elements to the end
  • βœ… Prepend elements to the start
  • βœ… Get the size of the list
  • βœ… Get the first (head) and last (tail) node
  • βœ… Access a node by index with at(index)
  • βœ… Remove the last node using pop()
  • βœ… Check if a value exists in the list using contains(value)
  • βœ… Find the index of a value using find(value)
  • βœ… Represent the list as a string with toString()
  • βœ… (Extra) Insert a node at a specific index with insertAt(value, index)
  • βœ… (Extra) Remove a node at a specific index with removeAt(index)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published