Nikitasha Shrivastava has Published 194 Articles

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

859 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

337 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

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

Sort an integer array, keeping first in place in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

234 Views

In the given problem statement we have to sort the given integer array but we have to keep the first item in place and sort the remaining items with the help of Javascript functionalities. So we will use some predefined functions of Javascript to solve the problem. Understanding the ... Read More

Smallest number that is divisible by first n numbers in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

292 Views

In the above problem statement our task is to find the smallest number that is divisible by the first n numbers with the help of Javascript functionalities. So Understanding the Problem The problem at hand is to find the smallest number which is evenly divisible by the ... Read More

Shortest distance between objects in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:50:13

561 Views

In this problem we have to calculate and find the shortest distance between two given objects in Javascript. So we will write a function to do this operation and also we will see its time and space complexity. We must consider the positions and coordinates of the objects in some ... Read More

Shift strings Circular left and right in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

1K+ Views

The main objective for the problem statement is to perform a circular shift on the strings in Javascript. The circular shifts can be left shirt or right shift. And implement this solution in Javascript. Understanding the Problem The problem at hand is to shift the strings circularly left ... Read More

Retrieve key and values from object in an array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:35:56

8K+ Views

In the given problem we are required to retrieve the key and values from an object in an array with the help of Javascript. So here we will retrieve the keys and values from an object in an array with the help of two methods provided by the object class ... Read More

Remove elements from singly linked list in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

602 Views

In the given problem statement we are presented with a singly linked list and our task is to remove one element from the list. So we will discuss this operation step by step below. What is a singly Linked List ? A singly linked list consists of a ... Read More

Advertisements