Back to Browse

Leetcode | 14. Longest Common Prefix | Java | C#

1.8K views
Oct 6, 2020
7:27

Leetcode | 14. Longest Common Prefix | Java | C# Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Example 2: Input: strs = ["dog","racecar","car"] Output: "" Explanation: There is no common prefix among the input strings.

Download

1 formats

Video Formats

360pmp49.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Leetcode | 14. Longest Common Prefix | Java | C# | NatokHD