2019年5月9日

git 修改remote url

摘要: 由于之前添加的是http协议的github仓库地址,因此每次push 或者pull都需要密码,所以,将其修改为ssh协议的,这样,就不需要这么麻烦了。 阅读全文

posted @ 2019-05-09 10:39 庭中核桃树 阅读(5631) 评论(0) 推荐(0) 编辑

2019年4月24日

C++ 实现简单快速排序

摘要: ```c++ include include using namespace std; define LOG(s)\ cout high) return; int i,j,tmp,t; i = low; j = high; tmp = a[low]; while(i = a[i] && i 阅读全文

posted @ 2019-04-24 15:40 庭中核桃树 阅读(263) 评论(0) 推荐(0) 编辑

2019年4月18日

LEETCODE 198. House Robber

摘要: ```c++ class Solution { public: int rob(vector& nums) { int len = nums.size(); if(!len) return 0; if(len == 1) return nums[0]; std::vector mem(len,0); 阅读全文

posted @ 2019-04-18 14:52 庭中核桃树 阅读(103) 评论(0) 推荐(0) 编辑

leetcode 174

摘要: ```c++ / @lc app=leetcode id=174 lang=cpp [174] Dungeon Game https://leetcode.com/problems/dungeon game/description/ algorithms Hard (26.59%) Total Ac 阅读全文

posted @ 2019-04-18 13:28 庭中核桃树 阅读(203) 评论(0) 推荐(0) 编辑

2019年4月16日

GIT 版本的回退

摘要: 查看commitid 。 版本的回退及查看reflog进行版本的选择。 阅读全文

posted @ 2019-04-16 10:38 庭中核桃树 阅读(168) 评论(0) 推荐(0) 编辑

unorderd_map 自定义键值及哈希函数的重载

摘要: 参考链接: https://blog.csdn.net/y109y/article/details/82669620 阅读全文

posted @ 2019-04-16 09:16 庭中核桃树 阅读(476) 评论(0) 推荐(0) 编辑

2019年4月11日

互斥锁 形成死锁实例

摘要: ```c++ include include include std::mutex coutMutex; int main(){ std::thread t([]{ std::cout lockGuard(coutMutex); std::cout lockGuard(coutMutex); std 阅读全文

posted @ 2019-04-11 15:31 庭中核桃树 阅读(243) 评论(0) 推荐(0) 编辑

2019年3月30日

leetcode 300

摘要: "原题链接" 讨论区的人才有更好的解决方案,利用 STL 的 lower_bound 函数,效率提升不少。 阅读全文

posted @ 2019-03-30 13:16 庭中核桃树 阅读(86) 评论(0) 推荐(0) 编辑

2019年3月27日

LeetCode 62

摘要: ```c++ / @lc app=leetcode id=62 lang=cpp [62] Unique Paths https://leetcode.com/problems/unique paths/description/ algorithms Medium (46.62%) Total Ac 阅读全文

posted @ 2019-03-27 14:09 庭中核桃树 阅读(81) 评论(0) 推荐(0) 编辑

LeetCode 122

摘要: 只要上涨就加上。 阅读全文

posted @ 2019-03-27 11:11 庭中核桃树 阅读(117) 评论(0) 推荐(0) 编辑

导航