2017年11月16日

从一整数数组中找出只重复一次的两个数

摘要: 概述 有一整数数组,所有数都重复了两次,只有两个数重复了一次,找出这两个数,要求空间复杂度为O(1),时间复杂度O(n) 代码 阅读全文

posted @ 2017-11-16 10:16 李雷 阅读(244) 评论(0) 推荐(0)

Edit Distance 最小编辑距离

摘要: 概述 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 ha 阅读全文

posted @ 2017-11-16 09:35 李雷 阅读(180) 评论(0) 推荐(0)

导航