摘要:
LeetCode 240. Search a 2D Matrix II 一道经典的二维矩阵搜索题。 题目描述 Write an efficient algorithm that searches for a target value in an m x n integer matrix. The m 阅读全文
摘要:
LeetCode 44. 通配符匹配 一道简化版的正则表达式匹配题。 题目描述 Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' 阅读全文
摘要:
LeetCode 10. 正则表达式匹配 这道题是正则表达式的匹配,初始化和状态转移都比较繁琐,需要非常小心,测试样例也给的比较全一些。先做一道简化版的 LeetCode 44. 通配符匹配 会简单一些。 题目描述 Given an input string (s) and a pattern (p 阅读全文
摘要:
const:指针常量与常量指针 const与指针的结合方式有时候令人迷惑,如: int * a0; int * const a1; int const * a2; const int * a3; int const * const a4; const int * const a5; const in 阅读全文