Grokking Dynamic Programming Patterns for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Custom Test case fail

navdeepsharmatu

Feb 18, 2024

If s1 : aebd

s2 : cdfe

o/p should be 6 as shortest common supersequence is : aebdcf

but algo returns 7.

can someone help where i am wrong ?

0

0

Comments
Comments
Design Gurus
Design Gurus2 years ago

How can "aebdcf" be the super-sequence? How will you produce s2 "cdfe" from it?

On this page