Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
Solution: BUG FREE! Exciting muhaha...
But I have to admit that this one is simple...
Find that I have another solution in Nov. 10, 2012... Combined two solution here. The following solution first find the shortest sequence and then use it as a baseline.
Solution: BUG FREE! Exciting muhaha...
But I have to admit that this one is simple...
Find that I have another solution in Nov. 10, 2012... Combined two solution here. The following solution first find the shortest sequence and then use it as a baseline.
Comments
Post a Comment