Problem : A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elemen ...
分类:
其他好文 时间:
2020-04-12 13:58:48
阅读次数:
67
地址:https://leetcode cn.com/problems/add two numbers/submissions/ 大意:给定两个链表,返回一个由这两个链表相加而得到的新链表 ` ` ...
分类:
其他好文 时间:
2020-04-12 07:53:08
阅读次数:
55
from 将其他类型或者数据结构转换为 Observable 当你在使用 Observable 时,如果能够直接将其他类型转换为 Observable,这将是非常省事的。from 操作符就提供了这种功能。 将一个数组转换为 Observable: let numbers = Observable.f ...
分类:
其他好文 时间:
2020-04-12 07:46:17
阅读次数:
58
1 ''' 2 两数相加: 3 给出两个 非空 的链表用来表示两个非负的整数 4 各自的位数是按照逆序的方式存储的 每一个节点只能保存 一位数 5 示例: 6 输入:(2->4->3) + (5->6->4) 7 输出:7->0->8 8 原因:342 + 465 = 807 9 10 ''' 11 ...
分类:
其他好文 时间:
2020-04-11 23:51:20
阅读次数:
81
题目: You've got a string a1,a2,…,ana1,a2,…,an, consisting of zeros and ones. Let's call a sequence of consecutive elements ai,ai?+?1,…,?ajai,ai?+?1,…,? ...
分类:
其他好文 时间:
2020-04-11 20:50:12
阅读次数:
58
嘤嘤嘤,因为最近文化课老师追的紧了+班主任开班会,所以这博客是赶制的赝品 题目: You've got a string a1,a2,…,ana1,a2,…,an, consisting of zeros and ones. Let's call a sequence of consecutive ...
分类:
其他好文 时间:
2020-04-11 20:24:04
阅读次数:
91
571. 给定数字的频率查询中位数 思路 数字个数可由n = SUM(frequency)求得, 先创建两列。asc_frequency:记录小于等于当前number的数字个数;desc_frequency:记录大于等于当前number的数字个数 这么创建的原因是,当我们找到asc_frequenc ...
分类:
数据库 时间:
2020-04-11 00:45:55
阅读次数:
161
CanChen ggchen@mail.ustc.edu.cn Max Consecutive Ones II Given a binary array, find the maximum number of consecutive 1s in this array if you can flip ...
分类:
其他好文 时间:
2020-04-10 00:08:30
阅读次数:
81
Overriding the SDK used with global.json - sort of The solution to SDK versioning problems in projects or Solutions is to use a global.json file in th ...
分类:
Web程序 时间:
2020-04-07 20:01:01
阅读次数:
84