Day 47 - Implement a singly linked list
Write a program to implement a singly linked list
Linked Lists
Source: GeeksForGeeks
A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers
Advantages of Linked Lists
- Dynamic size
- Ease of insertion/deletion
Disadvantages of Linked Lists
- A middle element canβt be accessed directly, only traversal is possible
- Extra memory space for a pointer is required with each element of the list
Try to implement a singly linked list.
Solution
JavaScript Implementation
Solution
// To Be Added