Set in JavaScript

Introduction In computer science, a set is an abstract data structure with the ability to store an unordered list of non-repeating values. One of several data structures, such as an array, can be used to implement a set. In this blog post, I will implement a set with a data structure that has a close resemblance to it: an object. Attributes of a set Here are the defining attributes of a set: An ability to create an empty storage container
- Set in JavaScript

Read more

Singly linked list in JavaScript

Introduction In computer science, a linked list is a common data structure consisting of a sequence of linked nodes. Each of these nodes, unlike an array, occupy a non-contiguous space in memory. Depending on the variant of a linked list, each node in a list can have one reference (singly linked list) or two references (doubly linked list). In this blog post, I will describe and create a singly linked list using JavaScript. Attributes of a singly linked list Here
- Singly linked list in JavaScript

Read more