Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:
其他好文 时间:
2020-07-13 09:56:37
阅读次数:
68
Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:
其他好文 时间:
2020-07-13 09:45:45
阅读次数:
61
一、数据库命名规范 可以采用26个英文字母 (区分大小写) 和0-9的自然数 (一般不需要) 加上下划线 ‘_’ 组成,命名简介明确 (Student_Union),多个单词用下划线 ‘_’ 分隔,一个项目一个数据库,多个项目慎用同一个数据库 二、表命名规范 1)采用26字母和0-9的自然数(一般不 ...
分类:
数据库 时间:
2020-07-13 09:40:54
阅读次数:
71
用pixel 2 XL刷官方镜像,结果不断提示getvar:all FAILED (remote: 'unknown command'),搜了半天没发现有什么解决方案,最后根据Google搜到的一些零星的结果硬把坑踩过去了。 重点主要就两点: 1.platform-tools版本不能高于26 2.A ...
分类:
移动开发 时间:
2020-07-12 19:15:48
阅读次数:
138
通道 Coroutine\Channel 使用本地内存,不同的进程之间内存是隔离的。 只能在同一进程的不同协程内进行 push 和 pop 操作。 Co::set(['hook_flags'=> SWOOLE_HOOK_ALL]); Co\run(function(){ // 设置一个容量为1的通道 ...
分类:
其他好文 时间:
2020-07-12 19:10:33
阅读次数:
108
更多内容详见:《The C++ Programming Language》第32章STL算法: f=for_each(b,e,f): 对[b:e)中的每个x执行f(x);返回f 例: void increment_all(vector<int>& v) //递增v中每个元素 { for_each(v ...
分类:
编程语言 时间:
2020-07-12 17:03:38
阅读次数:
52
package july.wild.All_Data_Structure_Impl; import java.util.Stack; /**使用递归一定要有返回值 * @author 郭赛 * @Company Huawei */ public class TreeNode { TreeNode l ...
分类:
其他好文 时间:
2020-07-12 13:53:22
阅读次数:
44
unrated 呜呜呜 #A 直接全输出1完事 #include <bits/stdc++.h> #define all(n) (n).begin(), (n).end() #define se second #define fi first #define pb push_back #define ...
分类:
其他好文 时间:
2020-07-12 12:42:52
阅读次数:
57
1 #进阶9:联合查询 2 /* 3 UNION 联合 合并:将多条查询语句的结果合并成一个结果 4 5 语法: 6 查询语句1 7 union 8 查询语句2 9 。。。 10 11 应用场景: 12 要查询的结果来自于多个表,且多个表没有直接的连接关系,但查询的信息一致时 13 14 特点: 1 ...
分类:
数据库 时间:
2020-07-12 12:10:56
阅读次数:
81
编写 markdown VS code 真的是非常好用的Markdown编写工具,我用他来编写Markdown的时间甚至比写代码还要多。比如,我每周写的公众号文章。 相关插件: Markdown Markdown Preview Enhanced Markdown All in One 编写pyth ...
分类:
其他好文 时间:
2020-07-11 17:36:54
阅读次数:
274