# NOT RUN {
longestCommonPrefix(c("CBA.321", "CBA.77654", "")) ## ""
longestCommonPrefix(c("CBA.321", "CBA.77654", "CB")) ## "CB"
longestCommonPrefix(c("ABC.123", "ABC.456")) ## "ABC."
longestCommonPrefix(c("nothing", "in", "common")) ## ""
# }
Run the code above in your browser using DataLab