Nikitasha Shrivastava has Published 163 Articles

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

560 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

649 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

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

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

Nikitasha Shrivastava

Nikitasha Shrivastava

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

278 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

412 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

377 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

Get value for key from nested JSON object in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 12:42:59

18K+ Views

In the given problem statement we are asked to get value for key from nested JSON object with the help of javascript functionalities. In Javascript we can solve and access the json data object with the help of dot notation or bracket notation. Before starting coding for the given ... Read More

Fibonacci like sequence in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 12:37:52

449 Views

In the given problem statement we are asked to create a fibonacci like sequence with the help of javascript functionalities. In the Javascript we can solve this problem with the help of recursion or using a for loop. What is the Fibonacci Sequence ? Let's understand the working of ... Read More

Determining whether numbers form additive sequence in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

360 Views

This problem says to determine if the given numbers in the array are in the form of additive sequence or not. We will check, If any two adjacent numbers in a sequence add up to the next number in the sequence, we can confirm this using a straightforward procedure. Understanding ... Read More

Convert number to characters in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 22-Aug-2023 14:24:43

7K+ Views

In the given problem statement we are asked to convert numbers to characters with the help of javascript functionalities. In Javascript we have some built−in functions to convert a number to its corresponding characters and also with user defined functions we can convert it. Logic for The Above Problem As ... Read More

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