## JavaScript Program to Check If a Singly Linked List is Palindrome Prabhdeep Singh

Updated on 20-Apr-2023 17:19:55

155 Views

A singly linked list is a linear data structure that is stored in a non-contiguous way in the memory and each block is connected by holding the address of the next block also known as a node. A palindrome can be explained as a set of characters, digits, etc, and ... Read More

## JavaScript program to check if a matrix is symmetric Prabhdeep Singh

Updated on 20-Apr-2023 17:18:45

209 Views

A symmetric matrix is a special case of a matrix where both the matrix and the transpose of the matrix are the same. A matrix is a set of integers or numbers stored in a rectangular form that is equivalent to the 2D array and the transpose of the matrix ... Read More

## JavaScript program to check if a given matrix is sparse or not Prabhdeep Singh

Updated on 20-Apr-2023 17:17:36

74 Views

In mathematics, a matrix is a set of integers or numbers stored in a rectangular form which is equivalent to the 2D array in programming or JavaScript programming. A sparse matrix is a special type of matrix in which the number of zeros is strictly more than the total number ... Read More

## JavaScript Program to check idempotent matrix Prabhdeep Singh

Updated on 20-Apr-2023 17:16:20

73 Views

An idempotent matrix is a square matrix that has the same number of rows and columns and when we multiply the matrix by itself the result will be equal to the same matrix. We will be given a matrix and we have to find that whether it is an idempotent ... Read More

## JavaScript Program to Check horizontal and vertical symmetry in binary matrix Prabhdeep Singh

Updated on 18-Apr-2023 09:08:38

230 Views

A binary Matrix is a 2-D array that consists of one and zero only as the elements in each cell. Horizontal symmetry of a binary matrix means if the first row is the same as the last row, the second row is the same as the second last row, and ... Read More

## JavaScript Program for Range sum queries for anticlockwise rotations of Array by K indices Prabhdeep Singh

Updated on 14-Apr-2023 17:15:00

84 Views

Anticlockwise rotation of an array means rotating all the elements of the given array to their left side by the given number of indexes. In this article, we will implement a JavaScript program for range sum queries for anticlockwise rotations of the array by k indices. Introduction to Problem In ... Read More

## JavaScript Program for Range LCM Queries Prabhdeep Singh

Updated on 14-Apr-2023 17:11:10

73 Views

LCM stands for the lowest common multiple and the LCM of a set of numbers is the lowest number among all the numbers which are divisible by all the numbers present in the given set. We will see the complete code with an explanation for the given problem. In this ... Read More

## JavaScript Program for Quicksort On Singly Linked List Prabhdeep Singh

Updated on 14-Apr-2023 17:10:12

161 Views

The Singly-linked list is a linear data structure that consists of nodes. Each node contains the data and the pointer to the next node which contains the memory address of the next node because the memory assigned to each node is not continuous. Sorting is a technique by which we ... Read More

## JavaScript Program for Queries to find the maximum sum of contiguous subarrays of a given length in a rotating array Prabhdeep Singh

Updated on 14-Apr-2023 17:08:08

76 Views

Rotating array means we will be given a number and we have to move the elements of the array in cyclic order in either the right or left direction. Here we are not specified so we will use the right rotation as the standard and after the given number of ... Read More

## JavaScript Program for Queries for rotation and Kth character of the given string in constant time Prabhdeep Singh

Updated on 14-Apr-2023 17:06:10

77 Views

Rotation of the given string means moving the characters of the given string in clockwise or anticlockwise manner by some indexes. Here, we will implement a JavaScript program for queries for rotation and kth character of the given string in the constant time. In this article we will implement the ... Read More