longest-prefix

Find the longest common starting substring in a set of strings

Find the longest common starting substring in a set of strings Question: This is a challenge to come up with the most elegant JavaScript, Ruby or other solution to a relatively trivial problem. This problem is a more specific case of the Longest common substring problem. I need to only find the longest common starting …

Total answers: 31