leetcode #Longest Common Prefix
LeetCode 14번 - Longest Common Prefix
leetcode.com/problems/longest-common-prefix/ Longest Common Prefix - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com int compare(string a, string b){ return a.size() < b.size(); } class Solution { public: string longestCommonPrefix(vector& strs) { string result = ""; if(strs.size()..