会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Asurudo Jyo の 倉 庫
手握红莲,青息不偃
首页
新随笔
联系
订阅
管理
上一页
1
···
38
39
40
41
42
43
44
45
46
47
下一页
2018年8月18日
codeforces-1023 A Single Wildcard Pattern Matching
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 int main() 10 { 11 int n,m; 12 while(cin >> n >> m) 13 { 14 string s,t; 15 ...
阅读全文
posted @ 2018-08-18 08:40 Asurudo
阅读(175)
评论(0)
推荐(0)
2018年8月17日
组合数计算
摘要: 1 #include <iostream> 2 #include <unordered_map> 3 #include <algorithm> 4 #include <vector> 5 #include <queue> 6 7 using namespace std; 8 9 class Solu
阅读全文
posted @ 2018-08-17 18:36 Asurudo
阅读(204)
评论(0)
推荐(0)
Leetcode-640 Solve the Equation(求解方程)
摘要: 1 class Solution 2 { 3 private: 4 enum op {PLUS,MINUS}; 5 int left_constant_sum = 0; 6 int left_x_sum = 0; 7 int right_constant_sum = 0; 8 ...
阅读全文
posted @ 2018-08-17 15:08 Asurudo
阅读(309)
评论(0)
推荐(0)
Leetcode-784 Letter Case Permutation(字母大小写全排列)
摘要: 1 class Solution 2 { 3 public: 4 vector result; 5 int size; 6 vector letterCasePermutation(string S) 7 { 8 size = S.size(); 9 DFS(...
阅读全文
posted @ 2018-08-17 11:33 Asurudo
阅读(330)
评论(0)
推荐(0)
Leetcode-450 Delete Node in a BST(删除二叉搜索树中的节点)
摘要: 1 class Solution 2 { 3 public: 4 //if doesn't find,return NULL 5 TreeNode *BinarySearchTreeNodeFindMin(TreeNode *TreeRoot) 6 { 7 if(TreeRoot==NULL) 8 ...
阅读全文
posted @ 2018-08-17 09:25 Asurudo
阅读(304)
评论(0)
推荐(0)
2018年8月16日
Leetcode-423 Reconstruct Original Digits from English(从英文中重建数字)
摘要: 1 class Solution 2 { 3 public: 4 string originalDigits(string s) 5 { 6 vector CharacterList(26,0); 7 for(auto c:s) 8 { 9 ...
阅读全文
posted @ 2018-08-16 11:39 Asurudo
阅读(245)
评论(0)
推荐(0)
Leetcode-692 Top K Frequent Words(前K个高频单词)
摘要: 1 struct cmp 2 { 3 bool operator()(const pair p1, const pair p2) 4 { 5 if(p1.second!=p2.second) 6 return p1.second > p2.second; //second的小值优先 7 return p1.fi...
阅读全文
posted @ 2018-08-16 10:45 Asurudo
阅读(325)
评论(0)
推荐(0)
2018年8月15日
Leetcode-355 Design Twitter(设计推特)
摘要: 其实可以把初始化创建人的ID的过程给抽出来做成一个函数,不过这只博主就是懒辣~
阅读全文
posted @ 2018-08-15 16:58 Asurudo
阅读(360)
评论(0)
推荐(0)
Leetcode-229 Majority Element II(求众数 II)
摘要: 1 class Solution 2 { 3 public: 4 vector majorityElement(vector& nums) 5 { 6 unordered_map mymap; 7 vector result; 8 for(auto d:nums) 9...
阅读全文
posted @ 2018-08-15 11:14 Asurudo
阅读(158)
评论(0)
推荐(0)
Leetcode-557 Reverse Words in a String III(反转字符串中的单词 III)
摘要: 1 class Solution 2 { 3 public: 4 string reverseWords(string s) 5 { 6 string result; 7 string tmp; 8 9 for(auto c:s) 10 { ...
阅读全文
posted @ 2018-08-15 10:04 Asurudo
阅读(126)
评论(0)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
47
下一页
公告