Sai Teja Kotha has Published 10 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

2K+ 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

The Priority Queue in Javascript

Sai Teja Kotha

Sai Teja Kotha

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

3K+ 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

702 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

Creating a Stack in Javascript

Sai Teja Kotha

Sai Teja Kotha

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

3K+ 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

918 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

355 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

199 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

How to modify an array value of a JSON object in JavaScript?

Sai Teja Kotha

Sai Teja Kotha

Updated on 07-Dec-2022 12:59:09

8K+ Views

In this article, we are going to discuss how to modify an array value of a JSON object in JavaScript. We try to update a new value or modify the existing value in an array. Modifying an array is just like modifying an object when that array is inside the ... Read More

How to get the Width and Height of the screen in JavaScript?

Sai Teja Kotha

Sai Teja Kotha

Updated on 07-Dec-2022 12:51:20

10K+ Views

In this article, we are going to discuss how to get the width and height of the screen in JavaScript. Javascript provides an window.screen object that contains information regarding the user's screen. The information includes height and width, and also many other features. To find the height and width of ... Read More

1
Advertisements