摘要:
Search a 2D MatrixWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row... 阅读全文
posted @ 2014-11-04 13:22
陆草纯
阅读(225)
评论(0)
推荐(0)
摘要:
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.解法一:思路:设置一个位数记录器num,遍历所有字符串的第num位。如果都相同,则nu... 阅读全文
posted @ 2014-11-04 12:46
陆草纯
阅读(2485)
评论(0)
推荐(0)
浙公网安备 33010602011771号