Nikitasha Shrivastava has Published 195 Articles

Sort an integer array, keeping first in place in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

91 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

189 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

389 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

913 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

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

392 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

Remove duplicate items from an array with a custom function in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 16:30:24

320 Views

In this problem statement our aim is to write an algorithm to remove duplicate items from an array with a function with the help of Javascript functionalities. Understanding the problem statement In the above problem statement we have to create a function by which we can accept ... Read More

Pick out numbers from a string in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

129 Views

In the given problem we are required to find out the numbers from a given string with the help of Javascript functionalities. So we will use regular expressions and some predefined functions of Javascript. Understanding the Problem The problem at hand is to find the numbers from the ... Read More

Partial sum in array of arrays JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:59:11

195 Views

In the given problem statement our task is to get the partial sum in an array of arrays with the help of Javascript functionalities. So we will calculate the sum of rows and give the result. Understanding the Problem The problem at hand is to compute the partial ... Read More

Parse and balance angle brackets problem in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Aug-2023 12:52:47

807 Views

In the given problem statement we have to find whether the angle brackets in the code are balanced or not with the help of Javascript functionalities. So for solving this problem we will use a stack based approach using Javascript methods. What is a Stack-based Approach ? The ... Read More

Advertisements