Day 34 of LeetCode
Documenting LeetCode solving.
Q99
14. Longest Common Prefix
Easy.
class Solution {
public String longestCommonPrefix(String[] strs) {
int n = strs.length;
int m = strs[0].length();
for (int col = 0; col < m; col++) {
...
evelynsjourney.hashnode.dev3 min read