摘要: Problem:Given two strings S and T, determine if they are both one edit distance apart.General Analysis:This problem is not hard. However, to write out... 阅读全文
posted @ 2015-09-17 08:58 airforce 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome y... 阅读全文
posted @ 2015-09-17 01:27 airforce 阅读(349) 评论(0) 推荐(0) 编辑