01 2016 档案

摘要:typedef std::list List;typedef std::map Map;Map getAnagrams(List& input){ Map result; for (const auto& s : input){ auto key = s; ... 阅读全文
posted @ 2016-01-23 02:14 wu_overflow 阅读(167) 评论(0) 推荐(0)
摘要:#include <iostream> #include <vector> #include <string> #include <mysql.h> using namespace std; int main() { ios::sync_with_stdio (false); MYSQL conne 阅读全文
posted @ 2016-01-21 21:24 wu_overflow 阅读(209) 评论(0) 推荐(0)
摘要:void leftRoutate(std::string& s, size_t offset){ auto reverse = [&](size_t begin, size_t end) { --end; while (begin <= end){ ... 阅读全文
posted @ 2016-01-20 03:27 wu_overflow 阅读(184) 评论(0) 推荐(0)
摘要:size_t LCS(const std::string& x, const std::string& y){ if (x.empty () || y.empty ()){ return 0; } const size_t width = x.length () +... 阅读全文
posted @ 2016-01-16 18:12 wu_overflow 阅读(141) 评论(0) 推荐(0)