SEATSR-Editorial

Yeah that works , thanks @kaushik_iiitd :smiley:

1 Like

your solution fails for this test case
1
abcde
aa
0 1 0
exp ans=0
your ans=-1
try returning 0 whenever value of a=0(there are definitely some cases regarding this as i was too stuck) since there is no need for further computation as deleting the entire first string and inserting the other would take 0 min operations

guys do some smart workā€¦ instead of pasting your entire code ā€¦ simply provide a link to your solutionā€¦ it will be more friendly to othersā€¦

Iā€™m trying to solve this problems with above idea, but I get WA, I donā€™t know whatā€™s wrong with my code?
Here is my code : http://www.codechef.com/viewsolution/5163464
Could anyone give me a hint why Iā€™m wrong?
Thank you! ^^

Please update authorā€™s solution

1 Like

Authorā€™s and Setterā€™s solutions please

Please update authorā€™s and testerā€™s solutionā€¦

Can anyone explain Restricted Edit Distance in some another manner ?

Iā€™m not able to understand that how we are going to reduce the size of the array d that we are using to store edit distance.

Shouldnā€™t

P[i][delta] = P[i - 1][delta], if s[i] == w[i + delta] ?

1 Like

@admin When exactly you will be putting author and testerā€™s solution?

waiting for authors solutionā€¦

3 Likes

Waiting for authorā€™s, setterā€™s and editorialistā€™s solution, DAY 201

1 Like

nice editorial.

Hey guys, I made a video editorial on this technique here:

https://youtu.be/7GCSA4u5ynw

Itā€™s been a long while, but the algorithm is still great!

Cheers!