Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 273 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 273 Bytes

7.Longest Common Prefix

Description

Write a function to find the longest common prefix string amongst an array of strings.

Example

Input: ['twk', 'tw', 'tk]
Output: 't'

From

LeetCode