Sakshi Jain has Published 14 Articles

Two sum problem in linear time in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 19:07:24

1K+ Views

The problem statement says to execute Two sum problem in linear time in JavaScript. It defines and explores the variety of algorithms that can help us find the least common factors present in mutual by the given source data in JavaScript. What is the Two sum problem in JavaScript ... Read More

sorting array of numbers into sets in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:58:00

124 Views

In the given problem statement we are asked to sort an array of numbers into some sets where the array is the input source provided by the user going from brute force method to optimized solution . What is an array in JavaScript ? If you are ... Read More

Removing duplicates from a sorted array of literals in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:49:22

186 Views

The problem statement says that given a sorted array of numbers as an input source by the user such that we need to remove the duplicates or repeated elements from it making it all new array containing only unique elements inside it. What is a Sorted Array in ... Read More

Inverting a binary tree in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:40:45

486 Views

The problem statement asks the user that given a binary tree , you need to find the mirror image of the elements of the binary tree such that reverse the corresponding and parallel siblings of the tree branches . In short, invert the whole binary tree given the original binary ... Read More

Generating all possible permutations of array in JavaScript

Sakshi Jain

Sakshi Jain

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

3K+ Views

In the given problem statement we are asked to generate every possible permutation of the array given as input by the in JavaScript going from brute force method to optimized solution . What is an array in JavaScript ? If you are familiar with any other programming language ... Read More

Finding Common Item Between Arbitrary Number of Arrays in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:32:29

148 Views

The problem statement tells you to find a solution for an arbitrary number of arrays such that the user needs to find a common element present in every arbitrary array. The arbitrary array is referred to here as an object of arrays . One should not confuse finding common elements ... Read More

Case-sensitive sort in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:27:49

1K+ Views

The problem statement says to perform case sensitive sorting in javascript on the array of strings given as an input source by the user . The problem statement wants the developer to perform a case sensitive sorting where all the special characters and numerals should appear first and ... Read More

Can the string be segmented in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 22-Aug-2023 18:17:30

194 Views

The problem statement says to check if the string given by the user as an input can be segmented or not . What is a Segmented String ? Segmentation in string refers to breaking down words in the whole string text as an input . The ... Read More

Add all records from one array to each record from a different array in JavaScript

Sakshi Jain

Sakshi Jain

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

282 Views

The problem statement asks the user to add all the records from one array to each record from a different array in JavaScript , the just read statement seems tough to understand and implement code upon . The simplest meaning is given two arrays of different collections of values , ... Read More

Sorting an array objects by property having null value in JavaScript

Sakshi Jain

Sakshi Jain

Updated on 21-Aug-2023 17:25:38

2K+ Views

The problem statement says to perform sorting of an array of objects taking in one specific condition to sort null value key pairs present in the array of objects to be pushed at the end of the array where the array of objects is given by the user as an ... Read More

Advertisements