- 博客(1)
- 收藏
- 关注
原创 算法比赛初赛解答
第一题https://leetcode-cn.com/problems/implement-strstr/ 解法一:BF算法,即直接暴力求解 代码部分:public static int strStr(String haystack,String needle){ int hlen = haystack.length(); int nlen = needle.length(); int i = 0,j = 0; while(i < hlen && j < nlen){ if(ha
2021-11-23 12:54:44
432
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人