Nikitasha Shrivastava has Published 195 Articles

Grouping data to month wise in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:50:12

715 Views

In the given problem statement we have to group the given data month wise. In simple terms the data should be in sorted form after grouping them month wise. For example we have years and months given in data so it should be visible in the order from January to ... Read More

Get average of every group of n elements in an array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:28:38

772 Views

In the given problem, we have to find out the average of every group of n elements in the array. If there are m elements in the array, then calculate the average of every group and show the result in array form. Understanding the Problem Suppose we ... Read More

Counting duplicates and aggregating array of objects in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:20:31

2K+ Views

The Given problem is stating to count the duplicates of array elements and then aggregating objects in a new array. Understanding the Problem Problem statement is saying to identify the duplicate elements from an array and make a single array of those objects stating the counts. To ... Read More

Adding binary strings together JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-Aug-2023 18:12:15

2K+ Views

The problem is stating that we have to add two binary strings. Binary strings are a sequence of bytes. To add them in javascript, we will first convert them to decimal and calculate the sum. After adding those decimal numbers, we will convert it again into binary strings and print ... Read More

Sum up a number until it becomes one digit - JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 17:04:13

785 Views

In the given problem statement we are presented with a number and we have to sum up the given number until it becomes one digit and implement the code in Javascript for getting the required sum. Understanding the Problem In the given program we will have a ... Read More

Sum of even Fibonacci terms in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 17:02:26

372 Views

In the given problem statement we have to calculate the sum of even fibonacci numbers with the help of Javascript functionalities. So for solving this task we will use basic functionalities of the language. Understanding the Problem The problem at hand is to calculate the sum of even ... Read More

Sum of all prime numbers in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 17:00:15

2K+ Views

In the given problem statement we have to compute the sum of all the prime numbers with the help of Javascript functionalities. So for calculating the sum we will set the upper limit of primes numbers. Understanding the Problem The problem is to calculate the sum of all ... Read More

Sorting an integer without using string methods and without using arrays in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:58:47

550 Views

In the given problem statement, our task is to sort an integer number without the usage of string methods and without usage of arrays with the help of Javascript functionalities. So for solving this task we will use mathematical operations and loops in Javascript. Understanding the Problem The ... Read More

Sorting alphabets within a string in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:57:01

238 Views

In the given problem statement we are required to sort the alphabets present in the string. And implement the solution with the help of Javascript functionalities. Understanding the Problem The problem we have is to create a function in Javascript with the help of it we can sort ... Read More

Sorting according to weights of numbers in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:55:33

880 Views

In this problem statement, our target is to sort the given array of numbers according to the weights of numbers with the help of Javascript. At the beginning we will write a function that calculates the weights of the numbers and then sort them with another function. Understanding the ... Read More

Previous 1 ... 7 8 9 10 11 ... 20 Next
Advertisements