实例级别的锁 实例代码 @Slf4j public class AddCompareDemo { private int a, b; public void add() { for (int i = 0; i < 10000; i++) { a++; b++; } } public void com ...
分类:
编程语言 时间:
2020-04-16 00:46:13
阅读次数:
86
k8s常用命令 说明:在master上面操作 1 删除 kubectl delete deploy/nginx 删除镜像 kubectl delete svc/nginx 删除pod 2 创建 kubectl run nginx --replicas=3 --labels="app=example" ...
分类:
其他好文 时间:
2020-04-14 22:24:26
阅读次数:
163
问题: 设计数据结构,使得以下三个方法的时间复杂度都为O(1) 允许插入重复数字。 insert(val): Inserts an item val to the collection. remove(val): Removes an item val from the collection if ...
分类:
其他好文 时间:
2020-04-14 20:59:50
阅读次数:
76
```html Generator函数 ``` ...
分类:
其他好文 时间:
2020-04-14 20:17:56
阅读次数:
53
参考文档:https://gobyexample.com/ 数组 package main import "fmt" func main() { var a [5]int fmt.Println("emp:", a) a[4] = 100 fmt.Println("set:", a) fmt.Pri ...
分类:
编程语言 时间:
2020-04-14 10:35:15
阅读次数:
99
连续数组。给定一个二进制数组, 找到含有相同数量的 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
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