Prabhdeep Singh has Published 197 Articles

JavaScript Program for Finding a Triplet from Three Linked Lists with a Sum Equal to a Given Number

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:52:20

87 Views

In this article, we are going to implement a JavaScript program for finding a triplet from three linked lists with a sum equal to a given number. This problem is a kind of variation of the standard and famous three-sum problem but in a linked list manner. Let’s see the ... Read More

JavaScript Program for Counting sets of 1s and 0s in a binary matrix

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:50:57

200 Views

A binary matrix is a matrix that consists of only two digits as its name suggests and those two digits are 1 and 0. In this article, we will go through the code with the approach and the proper explanation to understand the concepts in a better way. In this ... Read More

JavaScript program for counting frequencies of array elements

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:48:00

568 Views

Counting the frequencies means we have to count the number of times an element from the array appears in the given array. We can use some inbuilt data structures like maps to get the frequency or we can sort the array also to get the frequency of the array elements. ... Read More

JavaScript Program for Count Primes in Ranges

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:24:37

3K+ Views

Prime numbers are numbers that have exactly two perfect divisors. We will see two methods to find the number of prime numbers in a given range. The first is using the brute force method and by this method time complexity is a bit high. Then we will improve this method ... Read More

JavaScript Program to Check whether all the rotations of a given number are greater than or equal to the given number or not

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:22:26

77 Views

In this article, we will go through a JavaScript program to check whether all the rotations of a given number are greater than or equal to the given number or not. We will write an algorithm and explain every step that what we are doing. The time complexity of the ... Read More

JavaScript Program for Clockwise rotation of Linked List

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:19:50

185 Views

The basic structure of a Linked List in JavaScript can be created using the class in JavaScript and then the movement of the nodes from one position to another can be done for rotation. In this article, we will learn how to rotate a linked list in a clockwise manner ... Read More

Explain Implement a Memoization Helper Function

Prabhdeep Singh

Prabhdeep Singh

Updated on 17-Mar-2023 13:53:03

242 Views

Memoization is a helper function, or we can say a technique for improving the efficiency of a program by Keeping track of the values that the function has already calculated in the past. In this article, we will discuss the Memoization Helper function with different examples and discuss all the ... Read More

Explain HTTP Request in Backbone.js

Prabhdeep Singh

Prabhdeep Singh

Updated on 17-Mar-2023 13:50:52

192 Views

Backbone.js is helping us to organize the JavaScript as it is a compact library. And HTTP is referred to as HyperText Transfer Protocol which helps us to connect the web server over the internet. First, we need to discuss the Backbone.js, HTTP protocol, and HTTP request for a clear understanding ... Read More

Explain Handler Method in ES6

Prabhdeep Singh

Prabhdeep Singh

Updated on 17-Mar-2023 13:47:07

117 Views

ES6 is referred to as ECMAScript 6. ES6 is the sixth version of ECMAScript, which was released in 2015 and is sometimes known as ECMAScript 2015. ECMAScript was developed to standardize JavaScript. Further in this article, we are going to discuss Handler Methods in ES6 in detail. Introduction to ES6 ... Read More

Explain Different kinds of Generators in JavaScript

Prabhdeep Singh

Prabhdeep Singh

Updated on 17-Mar-2023 13:45:24

99 Views

As we know JavaScript is a lightweight programming language in which generators were introduced in ECMAScript 2015. A generator is a process that has many output values and may be stopped and started. In JavaScript, a generator is made up of a generator function that produces an iterable Generator object. ... Read More

Advertisements