摘要:
目前只能暴破,应该有更高效的算法 阅读全文
posted @ 2022-05-13 20:22
智人心
阅读(15)
评论(0)
推荐(0)
摘要:
char转string的时候注意char数组的最后一个字符要是'\0' 阅读全文
posted @ 2022-05-13 20:10
智人心
阅读(36)
评论(0)
推荐(0)
摘要:
set的添加: set<string>s; s.insert("abc"); 阅读全文
posted @ 2022-05-13 19:52
智人心
阅读(38)
评论(0)
推荐(0)
摘要:
注意仅有一个字符不相等是false 阅读全文
posted @ 2022-05-13 14:55
智人心
阅读(22)
评论(0)
推荐(0)
摘要:
注意 1: left join 用的是on而不是where 2: 如果空则赋0 ifnull(sum(r.distance,0) select u.name name,ifnull(sum(r.distance),0) travelled_distance from Users u left joi 阅读全文
posted @ 2022-05-13 13:44
智人心
阅读(40)
评论(0)
推荐(0)
摘要:
利用unordered_map<int,int>hashmap可以将查找的时间缩小至O(1) class Solution { public: vector<int> arrayRankTransform(vector<int>& arr) { int n = arr.size(),MIN,MINP 阅读全文
posted @ 2022-05-13 09:04
智人心
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号