Leetcode Wildcard Matching
来源:互联网 发布:win7 apache php 配置 编辑:程序博客网 时间:2024/06/05 22:10
class Solution {public: bool isMatch(const char *s, const char *p) { char *ss = NULL, *sp = NULL; while(*s){ if(*p=='?'||*s==*p){s++;p++;continue;} if(*p=='*'){ss=const_cast<char*>(s);sp=const_cast<char*>(++p);continue;} if(ss){s=++ss;p=sp;continue;} return false; } while(*p=='*'){ p++; } return !*p; }};
0 0
- LeetCode: Wildcard Matching
- LeetCode : Wildcard Matching
- [LeetCode] Wildcard Matching - Iteratively
- leetcode 83: Wildcard Matching
- [Leetcode] Wildcard Matching
- [LeetCode]Wildcard Matching
- LeetCode-Wildcard Matching
- LeetCode -- Wildcard Matching
- LeetCode | Wildcard Matching
- Leetcode: Wildcard Matching
- Leetcode:Wildcard Matching
- LeetCode题解:Wildcard Matching
- LeetCode Wildcard Matching
- [Leetcode] Wildcard Matching (Java)
- LeetCode OJ:Wildcard Matching
- Leetcode: Wildcard Matching
- Wildcard Matching -- LeetCode
- [LeetCode] Wildcard Matching
- 冒烟测试
- Ubuntu下用Hexo搭建个人博客及常见问题的解决方案
- 开博写文
- iOS 隐藏tabBar UITabBarController 以及 于UINavigationController 配合使用 push
- BlockingQueue详解
- Leetcode Wildcard Matching
- 同步时钟脚本在crontab中遇到的问题
- linux shell中各种括号的使用方法
- 科大少年班“神童”是先戴博士帽,还是先戴乌纱帽?
- hdu_1002_Let the Balloon Rise (模拟)
- 科大少年班“神童”是先戴博士帽,还是先戴乌纱帽?
- stm8 红外解码 使用TL IO中断与定时实现(芯片用103)
- 为mysql ibdata1瘦身
- 关于wifi AP模式(热点Hotpot) ip地址的相关信息