Nikitasha Shrivastava has Published 194 Articles

Remove duplicate items from an array with a custom function in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:30:24

429 Views

In this problem statement our aim is to write an algorithm to remove duplicate items from an array with a function with the help of Javascript functionalities. Understanding the problem statement In the above problem statement we have to create a function by which we can accept ... Read More

Pick out numbers from a string in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 13:03:03

207 Views

In the given problem we are required to find out the numbers from a given string with the help of Javascript functionalities. So we will use regular expressions and some predefined functions of Javascript. Understanding the Problem The problem at hand is to find the numbers from the ... Read More

Partial sum in array of arrays JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:59:11

273 Views

In the given problem statement our task is to get the partial sum in an array of arrays with the help of Javascript functionalities. So we will calculate the sum of rows and give the result. Understanding the Problem The problem at hand is to compute the partial ... Read More

Parse and balance angle brackets problem in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:52:47

1K+ Views

In the given problem statement we have to find whether the angle brackets in the code are balanced or not with the help of Javascript functionalities. So for solving this problem we will use a stack based approach using Javascript methods. What is a Stack-based Approach ? The ... Read More

Pair whose sum exists in the array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:39:25

288 Views

In this article we will see how to find a pair of items in an array which has sum equals to a specific target number. So we will use JavaScript to implement the algorithm. Understanding the Problem The problem at hand is to find the pair of numbers ... Read More

Number Split into individual digits in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:33:34

2K+ Views

In the given problem statement we are presented with a digit and our task is to split it into individual digits with the help of Javascript. So we can convert the given number into a string and then we can use it in string manipulation techniques to get the desired ... Read More

Non-negative set subtraction in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:28:08

360 Views

In the given problem statement we are presented with two arrays which contain integer values. So our aim is to find the non negative set subtraction from the two arrays. And implement the solution in Javascript. We can perform this task using the Set object and forEach method. What ... Read More

Maximum sum of n consecutive elements of array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:23:07

1K+ Views

In the given problem statement our aim is to find the maximum sum of n consecutive items of array with the help of Javascript functionalities. So for solving this problem we will use basic Javascript functionalities and produce the maximum sum. Understanding the Problem The problem at hand ... Read More

Largest difference between element with a twist in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:38:03

157 Views

In this problem statement we have to find the largest difference between elements with a twist with the help of Javascript functionalities. So we will use basic Javascript to get the desired result. Understanding the problem The problem at hand is to find the largest difference between two ... Read More

JavaScript Total subarrays with Sum K

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:34:25

431 Views

In this problem statement, our task is to write the function for getting the total subarrays with sum K with the help of Javascript. So for doing this task we will use basic functionality of Javascript. Understanding the problem statement The problem statement is to create a function ... Read More

Advertisements