Nikitasha Shrivastava has Published 194 Articles

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

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

432 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

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

462 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

632 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

381 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

326 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

Capitalizing first letter of each word JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 11:50:59

520 Views

In this problem statement, our task is to capitalize the first letters of each word with the help of Javascript functionalities. To solve this problem we need to understand the meaning and logic of the problem. Understanding the problem statement The problem statement is to write a function in Javascript ... Read More

Calculating median of an array in JavaScript

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 18-May-2023 11:40:18

3K+ Views

In this problem statement, our task is to calculate the median of an array with the help of Javascript functionalities. There are several ways that can be used to solve this task. One simple method to calculate median is using the built-in function of Javascript. Understanding the problem statement The ... Read More

Advertisements