Jadi
You are provided an array of strings, and you should find the longest common prefix among them... I'll show you my solution and will suggest a cool approach to the questions; can you implement it yourself?
source: https://leetcode.com/problems/longest-common-prefix/description/?envType=study-plan-v2&envId=top-interview-150 ... https://www.youtube.com/watch?v=P0FJ8jki5kg
38563090 Bytes