摘要: https://leetcode-cn.com/problems/implement-strstr/ 能不动脑子为什么要折腾呢? class Solution { public int strStr(String haystack, String needle) { if(needle.length 阅读全文
posted @ 2022-04-03 15:27 v大喵 阅读(11) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/longest-common-prefix/ 请原谅我就是个只会暴力计算的低端程序狗: class Solution { public static List<String> getPrefixtring(String str) { 阅读全文
posted @ 2022-04-03 15:13 v大喵 阅读(27) 评论(0) 推荐(0) 编辑