Nikitasha Shrivastava has Published 196 Articles

Make an array of another array's duplicate values in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 14:39:10

824 Views

In the given problem statement we are asked to make an array of another array’s duplicate values with the help of javascript functionalities. As we talk about duplicate values in an array means we have to find the exact elements present in the first array. What is an array in ... Read More

JSON group object in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 14:34:43

387 Views

In the given problem statement we are asked to group the JSON object with the help of javascript functionalities. This problem can be solved with the help of a simple algorithm in javascript. What is JSON ? JSON (Javascript Object Notation) is lightweight data which can be transferred between two ... Read More

What is the best way to search for an item in a sorted list in JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 14:27:45

239 Views

In the given problem statement we are asked to find the best way to search for an element in a sorted list with the help of javascript functionalities. As we talk about sorting any list or array the binary search algorithm is the best way in data structures. What is ... Read More

Merging subarrays in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 14:16:39

397 Views

This problem says to merge the subarrays with the help of javascript concepts. We will use email data in this issue. Additionally, we will combine emails from people with the same name. Understanding the problem For solving any given statement we need to first understand the problem in depth. ... Read More

Using BigInt to calculate long factorials in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 13:57:07

953 Views

In the given problem statement we are asked to find out long factorials of a Bigint value with the help of javascript functionalities. BigInt is a data type in javascript, which is used to calculate the factorial of a large number. What is the BigInt data type in JavaScript ? ... Read More

Truncating a String in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 13:21:32

3K+ Views

In the given problem statement we are asked to truncate a string with the help of javascript functionalities. We can solve this problem with the help of Javascript’s built−in functions slice() and substr(). What do you mean by truncating a string ? Let's understand the meaning of truncating a ... Read More

Three strictly increasing numbers (consecutive or non-consecutive) in an array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 13:14:24

257 Views

The Given problem is trying to find three strictly increasing numbers with consecutive or non−consecutive numbers in an array with the help of javascript. Understanding the Problem Before starting to write algorithms and programmes for the given problem first we will understand the logic behind the problem. Consider ... Read More

Sorting an array including the elements present in the subarrays in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 13:08:25

108 Views

In the given problem statement we are asked to sort an array including the elements present in the subarrays with the help of javascript functionalities. As we talk about sorting any list or array the sort() and flat method is useful. What are sort(), flat() and isArray() methods in JavaScript ... Read More

How to implement backtracking for a climbing stairs practice in JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 13:01:08

214 Views

In the given problem statement we are asked to implement backtracking for a climbing stairs practice with the help of javascript functionalities. In the data structures backtracking is popularly known to explore all the possible solutions. We can solve this problem with the help of a backtracking algorithm. What is ... Read More

Group matching element in array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 12:45:50

230 Views

In the given problem statement we are asked to make a group matching element in an array with the help of javascript functionalities. As we talk about grouping elements of an array we usually use the reduce method. What is the reduce() function in JavaScript ? Let's understand the working ... Read More

Previous 1 ... 4 5 6 7 8 ... 20 Next
Advertisements