摘要: day2-1 No.14 最长公共前缀 暴力求解即可,我采用的是纵向比较法,时间复杂度:O(mn)。 class Solution { public: string longestCommonPrefix(vector<string>& strs) { int len=strs.size(); if 阅读全文
posted @ 2021-01-04 20:55 UYNAIT 阅读(50) 评论(0) 推荐(0)