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!