Under my umbrella.

SKII

Less is more.

摘要: 38th 外观数列 简单模拟 根据题目描述,简单的模拟一遍即可。 class Solution { public String countAndSay(int n) { StringBuilder sb = new StringBuilder("1"); for (int k = 1; k < n; 阅读全文
posted @ 2020-07-06 15:32 NLYang 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 28th 实现 strStr() 滑动窗口思想/简单模拟 一个外循环用来遍历大串,一个内循环(或调substring函数)用来比对元素。 class Solution { public int strStr(String haystack, String needle) { int l = need 阅读全文
posted @ 2020-07-06 10:06 NLYang 阅读(130) 评论(0) 推荐(0) 编辑