skshoyebjavascript.hashnode.devAll String Permutations - Backtracking Method - JavaScript SolutionIn this article we will solve the all string permutation problem with javascript by backtracking method. We will generate the solution tree and write the code accordingly, Solution Tree Code class 15h ago·2 min read
skshoyebjavascript.hashnode.devQueue & Pub/Sub in JavaScript In this article we will know how to use queues and pubsubs in javascript. A message queue is a communication method used in software systems where one program (the producer) sends messages to a queue,3d ago·3 min read
skshoyebjavascript.hashnode.devPower Set Using Recursion Problem Solve in JS with Recursion Tree ApproachTo solve the power set using recursion problem we have to first make the recursion tree on the decission basis. Recursion Tree In every step we are selecting a character and taking decession adding 5d ago·1 min read
skshoyebjavascript.hashnode.devSum of Subarray Minimums Solution With JavaScript O(n) ComplexityGiven an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the answer modulo 10<sup>9</sup> + 7. Problem Statement Given an array: arr = [3, 1, 2, 4] We want:...Feb 12·3 min read
skshoyebjavascript.hashnode.devReverse Node With Kth Group Solution JavaScript LinkedList (Hard)In this article we will understand the approach of the reverse Node with Kth Group. This is a Linkedlist hard question. We will solve it through javascript and see the logic. Code var getKthNode = function(curr, k){ while(curr && k>0){ cu...Feb 9·2 min read