连续数组。给定一个二进制数组, 找到含有相同数量的 0 和 1 的最长连续子数组的长度。例子, Example 1: Input: [0,1] Output: 2 Explanation: [0, 1] is the longest contiguous subarray with equal nu ...
分类:
其他好文 时间:
2020-04-14 10:32:28
阅读次数:
77
Data Definition Language Statements Data definition language (DDL) statements define, alter the structure of, and drop schema objects. DDL statements ...
分类:
数据库 时间:
2020-04-13 16:52:20
阅读次数:
299
获取数据 adb shell "dumpsys meminfo | grep com.example.shineapp" import os import time import csv #控制类 class Controller(object): def __init__(self,count): ...
分类:
移动开发 时间:
2020-04-13 14:09:55
阅读次数:
100
SparseMatrix.h #pragma once #include<iostream> using namespace std; class Tri { public: int col; int row; int value; }; class SparseMatrix { public: i ...
分类:
其他好文 时间:
2020-04-13 10:37:44
阅读次数:
62
DNA sequence Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6042 Accepted Submission(s): 2735 P ...
分类:
其他好文 时间:
2020-04-13 10:35:32
阅读次数:
80
toc toc Table of Contents 1. 非线性振动–顾致平– 中国电力出版社 ,2012 2. 刘延柱–振动力学– Mechanical Vibration - 高等教育出版社–2011 2.1. content 2.2. description 2.3. authors intr ...
分类:
其他好文 时间:
2020-04-12 22:37:31
阅读次数:
123
/** * 快速排序算法 */ void quick_sort (int *s, int l, int r) { if (l < r) { int i = l, j = r, x = s[l]; while (i < j) { while (i < j && s[j] >= x) j--; if ( ...
分类:
编程语言 时间:
2020-04-12 20:59:53
阅读次数:
84
问题: 给定数组(含有正数负数),求连续子集合和=k的子集合数。 Example 1: Input:nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of ...
分类:
其他好文 时间:
2020-04-12 20:20:03
阅读次数:
72
Programmer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he is now studying the ...
分类:
其他好文 时间:
2020-04-12 20:18:43
阅读次数:
92
前置基础介绍 在继续我们的源码学习之前,我们在这里花费一章节来学习一些基础的 。 这些编码范式在后面的几乎所有的源码中都会用到。因此,在这里提前进行介绍。 一方面,有助于理解源码,另一方面,也可以用到自己的日常编码中。 ...
分类:
其他好文 时间:
2020-04-12 18:42:36
阅读次数:
50