摘要: 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 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 struct UnionFindSet 2 { 3 int *ID; 4 int *Auxiliary; 5 int GroupSum; 6 int WeightOriginalTotal; 7 }; 8 9 struct UnionFindSet* UnionFindSetInit(int WeightTotal) 1... 阅读全文
posted @ 2018-08-14 20:49 Asurudo 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 vector uncommonFromSentences(string A, string B) 5 { 6 map A_store,B_store; 7 string A_words,B_words; 8 ... 阅读全文
posted @ 2018-08-14 20:48 Asurudo 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution 2 { 3 public: 4 bool isSubsequence(string s, string t) 5 { 6 vector WordList[26]; 7 for(int i = 0;i < t.size();i ++) 8 ... 阅读全文
posted @ 2018-08-14 20:44 Asurudo 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef int ElementType; 6 7 struct BinarySearchTreeNode 8 { 9 ElementType Element; 10 struct BinarySearchTreeNode *Left; 11 struct Bin... 阅读全文
posted @ 2018-08-14 13:35 Asurudo 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef int ElementType; 6 enum KindOfEntry {Legitimate,Empty,Deleted}; 7 8 struct OAHashListNode 9 { 10 ElementType Element; 11 ... 阅读全文
posted @ 2018-08-06 21:06 Asurudo 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 typedef int ElementType; 6 7 struct SCHashListNode 8 { 9 ElementType Element; 10 int ExistNum; 11 struct SCHashListNode *Next... 阅读全文
posted @ 2018-08-06 12:38 Asurudo 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 #define MaxVertexNodeNumSize 1000 6 #define MaxVertexNodeNameSize 100 7 8 struct VertexBodyNode 9 { 10 char VertexName[MaxVertexNodeNa... 阅读全文
posted @ 2018-08-05 22:00 Asurudo 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 #define MaxVertexNodeNumSize 1000 6 #define MaxVertexNodeNameSize 100 7 8 struct VertexBodyNode 9 { 10 char VertexName[MaxVertexNodeNa... 阅读全文
posted @ 2018-08-05 22:00 Asurudo 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 6 #define MaxVertexNodeNumSize 1000 7 #define MaxVertexNodeNameSize 100 8 #define INFINITY 10000 9 10 struct VertexBodyNode 11 ... 阅读全文
posted @ 2018-08-05 21:59 Asurudo 阅读(236) 评论(0) 推荐(1) 编辑