随笔分类 - 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:
阅读全文
摘要:一、Sunday 匹配机制匹配机制非常容易理解: 目标字符串 haystack,长度为len 模式串 needle,长度为len_pattern 当前查询索引 idx (初始为 0) 待匹配字符串 search= haystack.substring(idx, idx + len_pattern),
阅读全文
浙公网安备 33010602011771号