摘要: Problems:Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtim... 阅读全文
posted @ 2015-07-11 19:59 尾巴草 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Problem:Write a function to find the longest common prefix string amongst an array of strings.Solution:题意要求求取字符串数组的最长公共前缀子串。从位置0开始,对每一个位置比较所有的字符串,直到遇到... 阅读全文
posted @ 2015-07-11 19:46 尾巴草 阅读(122) 评论(0) 推荐(0) 编辑