摘要: Graph is an important data structure and has many important applications. Moreover, grach traversal is key to many graph algorithms.There are two syst... 阅读全文
posted @ 2015-06-26 23:09 jianchao-li 阅读(854) 评论(0) 推荐(0) 编辑
摘要: Problem Description:Given two strings S and T, determine if they are both one edit distance apart.To solve this problem, you first need to know what i... 阅读全文
posted @ 2015-06-26 15:52 jianchao-li 阅读(968) 评论(0) 推荐(0) 编辑
摘要: This problem is similar to Missing Ranges and easier than that one.The idea is to use two pointers to find the beginning and end of a range and then p... 阅读全文
posted @ 2015-06-26 14:29 jianchao-li 阅读(276) 评论(0) 推荐(0) 编辑