Nikitasha Shrivastava has Published 196 Articles

Queue Reconstruction by Height in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:32:07

134 Views

In this problem statement, our task is to write a function for queue reconstruction by height with the help of Javascript. So basically we have to arrange the given array data by height. Understanding the problem statement The problem statement says to write a function in Javascript with the ... Read More

Numbers smaller than the current number JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:30:45

401 Views

In the given problem statement we have to find the smaller numbers than the current number with the help of Javascript. So for doing this task we will be keeping track of the items and decrement the current number by one to get the desired result. Understanding the problem statement ... Read More

Nth element of the Fibonacci series JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:28:18

836 Views

In this problem statement, our aim is to find the nth element in the fibonacci series with the help of Javascript functionalities. To solve this problem we will use a recursive technique. Understanding the problem statement The problem is to write a function in Javascript that will help find the ... Read More

N consecutive odd numbers JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:05:33

471 Views

In this problem statement, our target is to print the n consecutive odd numbers and implement this problem with the help of Javascript functionalities. So we can solve this problem with the help of loops in Javascript. Logic for the given problem In the given problem statement we have to ... Read More

Maximum difference between a number JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:01:39

111 Views

In this problem statement, our task is to write the function for finding the maximum difference between a number in an array with the usage of Javascript functionalities. So we will use a nested loop to get the difference between two numbers. Understanding the problem statement The above problem statement ... Read More

Masking a string JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:57:33

3K+ Views

The above problem statement is about masking a substring within a string with the help of asterisks in Javascript. So we have to create a function to get the string with some hidden characters. Understanding the problem statement In the above problem statement we have to mask a substring within ... Read More

Mapping values to keys JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:56:16

565 Views

In the given problem statement we have to write a method for mapping values to keys with the help of Javascript. So for doing this task we will use an object literal in Javascript. Understanding the problem statement So we have to find out the value for the given key ... Read More

Finding Lucky Numbers in a Matrix in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:54:05

568 Views

In the given problem statement we have to write a function to get the lucky numbers in a matrix with the help of Javascript. So we will implement this task with for loops and functions of Javascript. Understanding the problem statement The problem statement is asking us to find ... Read More

JavaScript in filter an associative array with another array

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:42:52

637 Views

In this problem statement, our task is to filter an associative array with another array with the help of Javascript. So for doing this task we will use the filter method and includes the Javascript method. What is an associative array? An associative array is a data structure which is ... Read More

JavaScript Count repeating letter

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 14:39:38

2K+ Views

In this problem statement, our target is to count the repeating letter in the given string with the help of Javascript functionalities. So we can solve this problem with the help of loops and some built-in methods of Javascript. Logic for the given problem In the given problem statement we ... Read More

Advertisements