Talk:UVa 10739 - String to Palindrome

I think j-i<2 is no the condition to return 0,

the correct one is: j>=i consider this case:

pos:   1 2 3 4 string: a b c a

i=1 j=4 j-i=3 --> case b[i]==b[j] then 2 3 b c i=2 j=3 j-i=1 --> case j-i<2 then return 0 so the answer is 0 but the correct one is 1, either replace 'b' by 'c' or replace 'c' by 'b' or delete 'b' or delete 'c' Thanks Subzero. --192.100.170.30 20:06, 28 August 2008 (UTC)