Prabhdeep Singh has Published 188 Articles

JavaScript Program for the Least Frequent Element in an Array

Prabhdeep Singh

Prabhdeep Singh

Updated on 30-Mar-2023 11:33:39

687 Views

In this program, we are given an array of integers or elements and we have to return the element which presents the least numbers of the time in the array, and if there is more than one least frequent number present we can return any one of them which we ... Read More

JavaScript Program for Finding the Length of Loop in Linked List

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 11:01:48

190 Views

In this program, we will be given a linked list that may consist of a loop and we have to find if the loop exists then what will be the size of the loop. Let’s a very famous approach to finding the length of a loop with the help of ... Read More

JavaScript Program for Finding Intersection of Two Sorted Linked Lists

Prabhdeep Singh

Prabhdeep Singh

Updated on 24-Mar-2023 10:53:38

228 Views

In this program, we are given two linked lists and we have to create a new linked list that will contain all the elements which are common in both of the lists as the lists are given sorted then we can use the concept of two pointers which are going ... Read More

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

172 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 Count Primes in Ranges

Prabhdeep Singh

Prabhdeep Singh

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

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

161 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

416 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

373 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

288 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

209 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

Advertisements