输入预处理
ChenD17
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode-150-逆波兰表达式求值
class Solution { public: int cul(int a, int b, char tokens) {//a:顶一,b:顶二 switch (tokens) { case('+'): return a + b; case('-'): return b - a; case('*'): re...原创 2020-06-23 14:28:31 · 189 阅读 · 0 评论 -
leetcode-290-单词规律
//使用map构建pattern与单词之间的关系,使用set确保关系一一对应 class Solution { public: bool wordPattern(string pattern, string str) { vector<string> input; int cnt = 0; map<char, stri...原创 2020-06-24 14:43:03 · 238 阅读 · 0 评论
分享