LEETCODE
UNLOCKED
Problems
Donate
Premium
Longest Common Prefix
Solution Code
Time Complexity
O(
N * M
)
Space Complexity
O(
1
)