SSSk Shoyebinskshoyebjavascript.hashnode.dev·Mar 18 · 2 min readShortest Common Supersequence DP JavaScript Code With ExplainationGiven two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences. If there are multiple valid strings, return any of them. A string s is a subsequence of string 00
SSSk Shoyebinskshoyebjavascript.hashnode.dev·Mar 17 · 2 min readPrint All LCS Sequence JS DP + Backtracking SolutionAll LCS sequence is a hard problem in dynamic programming. In this article we will solve this with dymanic programming approach with backtracking and memoization in javascript. First we need to make t00
SSSk Shoyebinskshoyebjavascript.hashnode.dev·Feb 26 · 3 min readRat In A Maze Problem SolvedJavaScript BacktrackingIn this article we will solve Rat in a maze problem with backtracking. The rat start point is (0,0) and exit point is (n-1, n-1). The rat can move to 1 and 0 is blocked. Diagram Code class Solution 00
SSSk Shoyebinskshoyebjavascript.hashnode.dev·Feb 24 · 2 min readAll 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 00
SSSk Shoyebinskshoyebjavascript.hashnode.dev·Feb 21 · 3 min readQueue & 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,00