02 2022 档案
摘要:f(n)=f(n-1)+f(n-2) class Solution { public: int climbStairs(int n) { int s1(1);int s2(2); int s3; if(n==1)return s1; if(n==2)return s2; for(int i=3;i<
阅读全文
摘要:#LibreOffice ##设置JAVA路径 https://www.zotero.org/support/word_processor_plugin_troubleshooting#installation_error https://www.zotero.org/support/word_pr
阅读全文
摘要:#curl和wget curl 版权属于个人,一个rest api测试的libcurl跨平台库提供的工具,用于命令行模拟测试各种请求和协议。 wget 仅仅是命令行,GNU自由软件运动时候的项目产物。过去只能跑在Linux上。仅仅支持支持http1和ftp。 https://daniel.haxx.
阅读全文
摘要:  ![i
阅读全文
摘要:#方法一暴力搜索 class Solution { public: int maxSubArray(vector<int>& nums) { int n=nums.size();int ans=nums[0];int sum=0;//注意这里,差值/临时存储可以用0。因为没有直接比较并和ans相关联
阅读全文
摘要:https://gitee.com/elerao/Smark
阅读全文
摘要:#WebView2 微软已经因为eletron低性能高资源放弃Eletron,开始开发WebView2 https://www.electronjs.org/blog/webview2 #Electron.NET https://github.com/ElectronNET/Electron.NET
阅读全文
摘要:#Eletron与C通信 ##socket/websocket https://www.jianshu.com/p/ea9a1c6088ca ##node.js调用C动态链接库 https://nodejs.org/api/addons.html https://github.com/node-ff
阅读全文
摘要:#软件安装记录 一个非常头疼的就是安装新软件又无法使用。需要看看它安装什么软件后卸载。此时需要查看记录。 或者不小心卸掉什么以及其关联项。autoremove时常有问题。卸载掉应用的依赖项。 #查看 vim /var/log/apt/history.log #重新安装 awk '!/^Start|^
阅读全文
摘要:#源 从阿里云等地方复制完之后。在后面添加修改source文件。注意版本要改成最新的版本。 sudo vim /etc/apt/sources.list #elessr 安装0.29或者0.30。0.26版本有问题。 注销后登录会自动设置代理为2333proxy。 环境缺失无法使用软件中心安装。 可
阅读全文
摘要:#问题 因为ubuntu系统自带的驱动不兼容,导致卡死在登录界面。能动几秒钟,就卡死在那里了。进入系统前的图标状态和图形界面无法进入tty文本模式。偶尔能进入文本模式,但是没打几个字就卡死,或者突像开机出现一大堆文本。应该文本模式依然使用了不兼容的显卡驱动来显示文本。 #环境 thinkpad S5
阅读全文
摘要:/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), rig
阅读全文
摘要:public: bool isOneBitCharacter(vector<int>& bits) { int n=bits.size();int i; for(i=0;i<n-1;) { if(bits[i]==1) i+=2; else if(bits[i]==0) i+=1;//注意不要忘了e
阅读全文
摘要:#递归 先解决空 在规定子递归项目 最后是现在怎么操作现在 【二者可以交换】 最后返回传递给父递归 #广度有限遍历 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; *
阅读全文
摘要:public: bool isValid(string s) { unordered_map<char,char> pairs={ { ')','('}, {']','['}, {'}','{'} }; stack<char> stk; for(char ch: s) { if(pairs.coun
阅读全文
摘要:#守护进程 ##普通进程与后台进程 普通进程变为后台进程后,session关闭后默认off不会被通知。 但是其他进程可能修改其能通知。 另外系统I/O操作可能导致其报错。因为session开辟的资源已经没有了。 ##守护进程 不会被session和终端关闭的后台进程。类似于windows下的服务。
阅读全文
摘要:#滑动窗口 public: int lengthOfLongestSubstring(string s) { int left=0,right=0,max=1; int len=s.size(); //int len=std::strlen(s);报错,只接受char*。可以使用s.c_str //
阅读全文
摘要:/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) :
阅读全文
摘要:#暴力解法 class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { int n=nums.size(); for(int i=0; i<n;i++) { for(int j=i+1; j<n; j++)
阅读全文
摘要:
阅读全文
摘要:#由来 老头子把手机不小心搞进水了。充电红灯一直亮,但是一直开不了机。又不愿意买个二手的mate9。而且现在闲鱼骗子比较多,可靠的价格也不便宜。最初想把它卖了,大概75元钱。后来按下开机键发现显示了一次电量不足。所以只能试着修一修。 #胶水选购 白屏用B7000,黑屏用T7000[1]. [1]ht
阅读全文
摘要:    
阅读全文
摘要:
阅读全文