2018年7月21日
摘要: 外接键盘 设置 Mac系统会默认把外接键盘的win映射成command,需要把外接键盘的alt键与win键功能交换。方法是使用"修饰键"完成这个交换 (对 外接 键盘操作) 其他快捷键 command+L 定位到地址栏 command+tab 切换到下一个标签 command+2 切换到第2个标签 阅读全文
posted @ 2018-07-21 01:12 chenguang9239 阅读(652) 评论(0) 推荐(0) 编辑
  2018年6月18日
摘要: net/http库学习 概念 处理器 处理器:拥有ServeHTTP方法的接口(任何类型) 签名:ServeHTTP(http.ResponseWriter, http.Request) 1. ResponseWriter接口 2. 指向Request结构的指针 ServeMux结构(拥有Serve 阅读全文
posted @ 2018-06-18 20:32 chenguang9239 阅读(292) 评论(0) 推荐(0) 编辑
  2018年6月10日
摘要: 廖雪峰git教程学习 参考链接:廖雪峰git教程 版本回退: git reset --hard HEAD^20 HEAD之前20个版本 --hard 撤消commit与对应的更改 --soft 撤消commit git reflog 查看操作历史记录 暂存区(stage or index): git 阅读全文
posted @ 2018-06-10 23:03 chenguang9239 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 快捷键 : 移动行 Alt + Shift + up/down 行内(选中)移动(到头尾/删除) Ctrl(Shift) + left/rignt(Home/End/Backspace) 插入新行 Shift + Enter 替换变量、函数名 Shift + F6 配置快捷键 : 跳转到函数定义 回 阅读全文
posted @ 2018-06-10 10:26 chenguang9239 阅读(957) 评论(0) 推荐(0) 编辑
  2018年1月21日
摘要: 来自:https://www.zhihu.com/question/23042131 作者:郭无心链接:https://www.zhihu.com/question/23042131/answer/66571369来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1、在 阅读全文
posted @ 2018-01-21 19:41 chenguang9239 阅读(171) 评论(0) 推荐(0) 编辑
  2017年8月21日
摘要: 659. Split Array into Consecutive Subsequences 659. Split Array into Consecutive Subsequences You are given an integer array sorted in ascending order 阅读全文
posted @ 2017-08-21 00:51 chenguang9239 阅读(252) 评论(0) 推荐(0) 编辑
  2017年6月12日
摘要: 组委会正在为美团点评CodeM大赛的决赛设计新赛制。 阅读全文
posted @ 2017-06-12 16:41 chenguang9239 阅读(881) 评论(0) 推荐(0) 编辑
  2017年5月29日
摘要: n位二进制,求不包含连续1的二进制(n位)数字个数。 http://www.geeksforgeeks.org/count-number-binary-strings-without-consecutive-1s/ 也可以令f[i],表示共i位的二进制数字中,不包含连续1的二进制(i位)数字的个数。 阅读全文
posted @ 2017-05-29 09:48 chenguang9239 阅读(320) 评论(0) 推荐(0) 编辑
  2017年5月21日
摘要: 题目: https://www.nowcoder.com/questionTerminal/4e1012fe691b446d88eba5db8f511692 要求一个最长连续子序列,这个序列中只更改一个数字,便是最长连续递增子序列。 设更改的数字位于A[i],对A[i],计算出以A[i-1]为结尾的 阅读全文
posted @ 2017-05-21 11:19 chenguang9239 阅读(388) 评论(0) 推荐(0) 编辑
  2017年5月16日
摘要: bool com( const string& a, const string& b ) { string A; A.append( a ); A.append( b ); string B; B.append( b ); B.append( a ); int i = 0; while( A[i] == B[i] ) ... 阅读全文
posted @ 2017-05-16 21:38 chenguang9239 阅读(168) 评论(0) 推荐(0) 编辑