Nikitasha Shrivastava has Published 195 Articles

Find the greatest product of three numbers in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 17:18:44

386 Views

In the given problem statement our task is to find the greatest product of three numbers with the help of Javascript functionalities. So we will use sorting technique first to get the last three highest items of the array and then calculate the product of those three elements to get ... Read More

Find the Exact Individual Count of Array of String in Array of Sentences in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 17:14:18

205 Views

In the given problem statement we have to find the exact individual count of the array of strings in the array of sentences with the help of Javascript functionalities. So we will solve using the for loops to get the required result. Understanding the Problem The problem at ... Read More

Find average of each array within an array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:48:27

479 Views

In the given problem statement we are presented with an array which contains multiple subarrays. So our aim is to compute the average of every individual subarray and store these averages in a new array. And implement the solution in Javascript. Understanding the problem The problem has given ... Read More

Find all pairs that sum to a target value in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:42:24

1K+ Views

Our aim in the given problem statement is to find all the possible pairs which sum to a given target value with the help of Javascript. So we can solve this problem with the help of some built-in functions of Javascript. Understanding the Problem The given problem is ... Read More

Factorize a number in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:35:11

451 Views

In the given problem statement we are required to factorize the given number with the help of Javascript functionalities. So we will use loops and basic mathematics to factorize the given number. Understanding the Problem The problem at hand is to factorize the given number with the help ... Read More

Difference between sum of square and square of sum in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:30:13

357 Views

In the given problem statement we have to find the difference between sum of square and square of sum with the help of Javascript functionalities. So we will create two functions to do this task. Understanding the Problem The problem at hand is to calculate the sum of ... Read More

Cumulative sum at each index in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:24:42

689 Views

In the given problem statement we have to calculate the cumulative sum at each index with the help of Javascript functionalities. So we will use basic Javascript syntax and functions to solve this problem. What is Cumulative sum ? The cumulative sum is also known as running sum ... Read More

Convert string with separator to array of objects in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 15:22:37

239 Views

In this article we will discuss algorithm and complexity for converting string with separator to array of objects with the help of Javascript functionalities. For doing this task we will use split and map functions of Javascript. Understanding the problem statement The problem statement says to write a ... Read More

Comparing integers by taking two numbers in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 14:44:55

523 Views

In the given problem statement we have to find the difference between sum of square and square of sum with the help of Javascript functionalities. So we will use basic Javascript to solve this problem. Understanding the Problem The problem at hand is to compare the two integers ... Read More

Common Character Count in Strings in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 14:03:19

455 Views

In the given problem statement we are required to find the common characters count for the given strings with the help of Javascript functionalities. So we will use basic Javascript to solve this problem. Understanding the problem The problem at hand is to find the common characters between ... Read More

Advertisements