Longest Common Prefix
Easy
Strings
Given n strings, find the longest common prefix shared by all of them. If there is none, print an empty line.
Constraints
1 <= n <= 200 0 <= len(str) <= 200 Lowercase English letters
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.