Nikitasha Shrivastava has Published 194 Articles

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

405 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

230 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

352 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

332 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

Function to decode a string in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 12:40:51

2K+ Views

In the given problem statement we are asked to implement a function to decode a string with the help of javascript functionalities. To solve these kinds of problems we can use built−in functions of Javascript. These functions usually take encoded data as input and give output as decoded strings. What ... Read More

Fibonacci like sequence in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

393 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

Finding all possible combinations from an array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Aug-2023 12:34:26

2K+ Views

In the given problem statement we are asked to find all the possible combinations from an array with the help of javascript functionalities. So for this we will be working with an empty array and add all the possible combinations into this array. Logic for The Above Problem The easiest ... Read More

Determining whether numbers form additive sequence in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

305 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 object to array of objects in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 22-Aug-2023 15:49:17

544 Views

In the given problem statement we are required to convert an object to an array of objects with the help of javascript functionalities. To perform conversion of an object into an array of objects we can use Javascript’s built−in methods. What is an Array in Javascript ? An array is ... Read More

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