摘要:```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
阅读全文
摘要:```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);
阅读全文
摘要:```c++ / @lc app=leetcode id=174 lang=cpp [174] Dungeon Game https://leetcode.com/problems/dungeon game/description/ algorithms Hard (26.59%) Total Ac
阅读全文
摘要:查看commitid 。 版本的回退及查看reflog进行版本的选择。
阅读全文
摘要:参考链接: https://blog.csdn.net/y109y/article/details/82669620
阅读全文
摘要:```c++ include include include std::mutex coutMutex; int main(){ std::thread t([]{ std::cout lockGuard(coutMutex); std::cout lockGuard(coutMutex); std
阅读全文