Nikitasha Shrivastava has Published 195 Articles

isSubset of two arrays in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:27:39

235 Views

Our goal in the above problem statement is to use Javascript functionalities and determine whether or not the given arrays are subsets of each other. So using loops we can fix this problem. Understanding the problem The problem description specifies that we have to identify that the given ... Read More

How to split sentence into blocks of fixed length without breaking words in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:26:09

1K+ Views

In the given problem statement we have to split the given sentence into blocks of fixed length without breaking the words of the sentence. And we have to implement the solution in Javascript. Understanding the Problem The problem at hand is to split the given sentence into blocks ... Read More

How to shift each letter in the given string N places down in the alphabet in JavaScript?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:22:04

1K+ Views

In the given problem statement our aim is to shift every letter in the given string N places down in the alphabet with the help of Javascript functionalities. So we will use some basic Javascript methods to complete the given task. Understanding the Problem The problem at hand ... Read More

How to reverse a string using only one variable in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:19:30

150 Views

In this problem statement, our target is to print the reverse string using only one variable and implement the solution with the help of Javascript. So we can solve this problem with the help of loops in Javascript. Understanding the problem The given problem is stating that we ... Read More

How to get almost increasing sequence of integers in JavaScript ?

Nikitasha Shrivastava

Nikitasha Shrivastava

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

309 Views

In the given problem statement we have to get an almost increasing sequence of integers with the help of Javascript functionalities. So we will use some basic functionalities of mathematics and Javascript. Understanding the problem The problem at hand is to generate an almost increasing series of integers ... Read More

Highest and lowest value difference of array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:14:24

398 Views

In this problem we have to create an algorithm to get the highest and lowest value difference of an array with the help of Javascript functionality. So we will solve the problem with for loop and initialization of highest and lowest values to Infinity. Understanding the logic of the ... Read More

Group a sorted array based on the difference between current and previous elements in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:10:05

353 Views

In the given problem statement we have to group a sorted array based on the difference between the current and previous elements with the help of Javascript functionalities. To group a sorted array based on the difference between the current and previous items we can iterate over the array and ... Read More

Given an array of integers return positives, whose equivalent negatives present in it in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:07:45

357 Views

In the given problem statement we are presented with an array which contains positive and negative values. So our task is to keep the positive once and filter out the negative numbers from the array. And implement the solution in Javascript. Understanding the Problem We will be given ... Read More

Getting century from year in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:04:31

2K+ Views

In the given problem statement we are required to get the century from the given year with the help of Javascript functionalities. So we will use the basic functions of Javascript to solve this problem. Understanding the Problem The problem at hand is to find the century number ... Read More

Get closest number out of array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 14-Aug-2023 18:01:38

427 Views

In the above problem statement we are required to get the closest number of the given target out of the array. And we have to produce the code with the help of Javascript. Understanding the Problem The problem at hand is to find the closest number of ... Read More

Advertisements