fix {{ bux

This commit is contained in:
唐树森
2019-09-04 16:30:48 +08:00
committed by GitHub
parent fa06e53cc7
commit 73a3737d05
+1 -1
View File
@@ -43,7 +43,7 @@ public:
vector<string> findRepeatedDnaSequences(string s) {
unordered_set<int>substr_set;
unordered_set<string>output_set;
unordered_map<int, int> mp{{'A', 0}, {'C', 1}, {'G', 2}, {'T', 3}}; // 注意学习这种初始化方法
unordered_map<int, int> mp{ {'A', 0}, {'C', 1}, {'G', 2}, {'T', 3} }; // 注意学习这种初始化方法
int cur = 0; // 当前子串对应的int值
for (int i = 0; i < 9; ++i) cur = (cur << 2) | mp[s[i]];