摘要: 1.H-index a researcher at least h paper h score input: T test case N Ai output: thought: 好用的模板: Answer: #include <iostream> #include <algorithm> #incl 阅读全文
posted @ 2020-02-18 23:39 黑暗尽头的超音速炬火 阅读(116) 评论(0) 推荐(0)
摘要: 1.unordered_set为何有常数级别查找速度 其实现基础是什么 2. substr有2种用法:假设:string s = "0123456789"; string sub1 = s.substr(5); //只有一个数字5表示从下标为5开始一直到结尾:sub1 = "56789" strin 阅读全文
posted @ 2020-02-18 22:04 黑暗尽头的超音速炬火 阅读(98) 评论(0) 推荐(0)
摘要: 1.IP地址合并问题 2.子串 连续 子序列 不连续 LC334 class Solution { public: bool increasingTriplet(vector<int>& nums) { int min1,min2; min1=min2=INT_MAX; for(auto num:n 阅读全文
posted @ 2020-02-18 06:12 黑暗尽头的超音速炬火 阅读(112) 评论(0) 推荐(0)