摘要: Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha 阅读全文
posted @ 2017-06-20 07:49 Review->Improve 阅读(431) 评论(0) 推荐(0) 编辑
摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have 阅读全文
posted @ 2017-06-20 05:26 Review->Improve 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Given two strings S and T, determine if they are both one edit distance apart. There are three types of edits that can be performed on strings: insert 阅读全文
posted @ 2017-06-20 05:26 Review->Improve 阅读(576) 评论(0) 推荐(0) 编辑