Nikitasha Shrivastava has Published 195 Articles

Sorting odd and even elements separately JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

691 Views

In our problem statement we have to sort odd and even elements separately with the help of Javascript functionalities. So for doing this task we will use for loops and bubble sort for sorting odd and even numbers separately. Understanding the problem statement The problem statement is to write a ... Read More

Sorting numbers according to the digit root JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

166 Views

In this problem statement, our task is to sort numbers according to the digit root and implement this problem with the help of Javascript functionalities. So we can solve this problem with the help of loops in Javascript. What is digit root? The digit root of a given number is ... Read More

Round number down to nearest power of 10 JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:52:47

665 Views

In the provided problem statement, our task is to write the function for partial sum in an array of arrays with the help of Javascript. So here we will be given a variety of arrays and we need to compute the sum of each row and show the result. Understanding ... Read More

Reversing the words within keeping their order the same JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:51:03

762 Views

In this problem statement, our aim is to reverse the words within keeping their order in the same order with the help of Javascript functionalities. So for solving this problem we can use traditional for loops and also built-in methods or Javascript. Understanding the problem statement The problem statement is ... Read More

Reversing array without changing the position of certain elements JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:46:44

445 Views

In this problem statement, our aim is to write the function for reversing the array without changing the position of certain elements with the help of Javascript. So for doing this task we will be keeping track of the indexes of the preserved elements. . Understanding the problem statement The ... Read More

Return the element that appears for second most number of times in the array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:41:47

92 Views

In the given problem statement, our task is to return the element that appears for the second most number of times in the array with the help of Javascript. So to solve this problem we will use map function to count the frequency of every element. Understanding the problem statement ... Read More

Remove number from array and shift the remaining ones JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:38:02

109 Views

In this problem statement, our task is to write a function to remove numbers from the array and shift the remaining elements with the help of Javascript functionalities. So we will use basic for loop to remove one element from the array and shift the remaining elements to get the ... Read More

Recursive loop that prints an inverted count in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 15:36:10

324 Views

In the given problem statement, we have to print an inverted count with a recursive loop and code with the help of Javascript. So basically we have to print the count in inverted count or we can say in descending order. What is Recursive technique ? The recursive technique ... Read More

Random whole number between two integers JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

154 Views

In the given problem statement, we have to find the whole number between two integers with the help of Javascript functionalities. So for doing this task we can use some in-built functions of javascript and also for loop to get the required result. Understanding the problem statement The problem statement ... Read More

Queue Reconstruction by Height in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

146 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

Advertisements