Sai Teja Kotha has Published 12 Articles

Doubly linked lists in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 16:07:05

2K+ Views

In this article, we are going to discuss a Doubly Linked List Class data structure in JavaScript. This is a linear data structure. Doubly linked lists are almost the same as a singly linked list in all operations, we just need to keep track of one extra link per node. ... Read More

Types of Linked List in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 16:03:47

1K+ Views

In this article, we are going to discuss various types of linked lists in JavaScript. A linked list is a sequential data structure that stores data dynamically. Since, this data structure is not indexed, the data can be added and removed as seen fit. This will reduce the wastage of ... Read More

Linked List Data Structure in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 16:00:54

509 Views

In this article, we are going to discuss the Linked List data structure in JavaScript. A linked-list is a sequence of data structures which are connected together via links. Linked List is a sequence of links which contains items. Each link contains a connection to another link. It is one ... Read More

The Priority Queue in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 15:58:27

2K+ Views

In this article, we are going to discuss the priority queue data structure in JavaScript. A priority queue is an abstract data type (ADT) which is like a regular queue or stack data structure, but where additionally each element has a "priority" associated with it. In a priority queue, an ... Read More

Queue Data Structure in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 15:55:25

321 Views

In this article, we are going to discuss the queue data structure in JavaScript. It is a linear data structure where the enqueue and dequeue of elements follow the FIFO (first in first out sequence). The queue is open at both ends. One end is always used to insert data ... Read More

Using iterator functions in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 16-Dec-2022 15:52:34

211 Views

In this article, we are going to discuss the importance of iterator functions in JavaScript. We can use the iterator function to iterate over an array. Other than Explicit iteration, Javascript provides a variety of iteration functions that you can use to iterate over arrays. Here, we use the forEach(), ... Read More

Creating a Stack in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 08-Dec-2022 12:04:00

2K+ Views

In this article, we are going to discuss how to create the stack data structure in JavaScript. It is a linear data structure where the push and popping of elements follow the LIFO (last in first out and FILO (first in last out) sequence. Though Arrays in JavaScript provide all ... Read More

Stack Data Structure in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 08-Dec-2022 12:00:27

662 Views

In this article, we are going to discuss the stack data structure in JavaScript. A stack is an Abstract Data Type (ADT), commonly used in most programming languages. It is named stack as it behaves like a real-world stack, for example – a deck of cards or a pile of ... Read More

Removing an element from a given position of the array in Javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 07-Dec-2022 13:12:21

148 Views

In this article, we are going to discuss removing an element from a given position of the array in JavaScript. The delete operator, the slice() method, and the splice() method can be used to remove an element from a given position of the array in this article. Following is ... Read More

Removing an element from the start of the array in javascript

Sai Teja Kotha

Sai Teja Kotha

Updated on 07-Dec-2022 13:06:54

78 Views

In this article, we are going to discuss removing an element from the start of the array in JavaScript. For that, we are going to use the _.rest() method. This method returns the array elements except for the 0th indexed element. We can also use the shift() method and the ... Read More

Advertisements