随笔分类 -  algorithm

摘要:https://leetcode-cn.com/problems/powx-n/solution/die-dai-wei-yun-suan-by-norazh/ 实现 pow(x, n) ,即计算 x 的 n 次幂函数。 示例 1:输入: 2.00000, 10输出: 1024.00000示例 2: 阅读全文
posted @ 2020-01-03 17:11 Jerryi224 阅读(162) 评论(0) 推荐(0)
摘要:一、Sunday 匹配机制匹配机制非常容易理解: 目标字符串 haystack,长度为len 模式串 needle,长度为len_pattern 当前查询索引 idx (初始为 0) 待匹配字符串 search= haystack.substring(idx, idx + len_pattern), 阅读全文
posted @ 2020-01-02 18:09 Jerryi224 阅读(498) 评论(0) 推荐(0)