题目描述
输入一个正整数, 输出所有和为 target 的连续正整数序列(至少含有两个数). 序列内的数字由小到大的排列
示例 1:
1 | 输入: target = 9 |
示例 2:
1 | 输入: target = 15 |
限制: 1 <= target <= 10^5
路漫漫其修远兮, 吾将上下而求索
pump is a small node module that pipes streams together and destroys all of them if one of them closes.
在 metamask 中各运行时的通信使用到了流(stream), 相对于 postMessage 的好处是处理大数据不会卡内存. 但是在 stream 中处理过程中, 如果目标流关闭了其状态是不会通知给数据源流. 数据源还会源源不断的写入数据, 但是没有目标流会获取这些数据了…