Leetcode – Longest Common Prefix

Name: Longest Common PrefixDifficulty: EasyDescription: Find the longest common prefix amongst several words Example: Given [“flower”, “flow”, “flight”], return “fl” Given [“car”, “tree”], return “” Given [“c”] return “c” I was pretty tired when coding this one, time for bed 🙂