Nikitasha Shrivastava has Published 196 Articles

Finding the nth missing number from an array JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:32:21

2K+ Views

In the problem mentioned our aim is to find the nth missing number in the given array and implement its solution in Javascript. To solve this question we will use a for loop and some basic functions of Javascript. Logic for the given problem Our task is to find the ... Read More

Finding longest substring between two same characters JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:25:47

364 Views

In this problem statement, our task is to find the longest substring between two same characters with the help of Javascript functionalities. This task can be done with the help of map function to keep track of the two same characters. Logic for the given problem The problem stated ... Read More

Find possible numbers in array that can sum to a target value JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:22:49

1K+ Views

In this problem statement, we are required to find all the possible numbers in an array that can sum to a given target value with the help of Javascript functionalities. This task can be done with the help of some built in functions of Javascript or we can solve it ... Read More

Find number of spaces in a string using JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:20:46

2K+ Views

In this problem statement, our task is to find the number of spaces in a string with the help of Javascript functionalities. This task can be done with the help of the split method of Javascript. This method can be useful to split the string into an array of substrings ... Read More

Fetch Numbers with Even Number of Digits JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

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

286 Views

In the given problem statement our task is to write the function for fetching the numbers with an even number of digits with the help of Javascript. For solving this task we will use a for loop and push every even number in the array. Understanding the problem statement The ... Read More

Encrypting a string JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:10:08

2K+ Views

In this problem statement, our task is to encrypt the input plain text in ciphertext with the help of Javascript functionalities. There are several methods that can be used to encrypt a message in Javascript. One simple method to encrypt the string is Caesar Cipher. Understanding the problem statement The ... Read More

Dynamic Programming - Part sum of elements JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:07:59

353 Views

In this problem statement, our task is to calculate the sum of all the elements of the array and remove one element at every step and show the resultant array of sum of all the possible subarrays. And implement this problem with the help of Javascript functionalities. Logic for ... Read More

Destructively Sum all the digits of a number in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 12:01:21

403 Views

Our main task is to write the function to destructively sum all the digits of a number with the help of Javascript. So for doing this task we will use a while loop and a function to get the desired output. Understanding the problem statement The problem is to create ... Read More

Checking if a number is some power of the other JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 11:56:48

133 Views

In this problem statement, our objective is to check if a given input number is some power of the other number. And implement this problem with the help of Javascript functionalities. Logic for the given problem The main objective of this problem statement is to determine if a given ... Read More

Checking for string anagrams JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 11:55:13

157 Views

In this problem statement, our aim is to check for string anagrams with the help of Javascript functionalities. So for solving this problem first we need to understand the problem in simple terms. Understanding the problem statement We have given a string as an input string and our main aim ... Read More

Advertisements