---
title: "Discussion on \"Shortest Common Supersequence DP JavaScript Code With Explaination\" | Hashnode"
description: "Discussion on \"Shortest Common Supersequence DP JavaScript Code With Explaination\". Given 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.\nA string s is a subsequence of string"
url: "https://hashnode.com/posts/shortest-common-supersequence-dp-javascript-code-with-explaination/69ba4813c22d3eeb8a43e40d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Shortest Common Supersequence DP JavaScript Code With Explaination](https://skshoyebjavascript.hashnode.dev/shortest-common-supersequence-dp-javascript-code-with-explaination?utm_source=hashnode&utm_medium=feed)

Given 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

Mar 18 · 2 min read · skshoyebjavascript.hashnode.dev  
Read the article

-   [#dynamic-programming](https://hashnode.com/tag/dynamic-programming)
-   [#dp](https://hashnode.com/tag/dp)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dsa](https://hashnode.com/tag/dsa)

## Written by

[Sk Shoyeb](https://hashnode.com/@skshoyebjs)

@skshoyebjs · India

  
[View profile](https://hashnode.com/@skshoyebjs)

Lets Explore The Javascript World With Sk Shoyeb

Ex Full Stack Developer at @WiseBoxs | Vue React Node | MERN

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
