Input: [2,3,-2,4] Output: 6 Explanation: [2,3] has the largest product 6. Input: [2,-5,-2,-4,3] Output: 24 Explanation: [-2,-4,3] has the largest prod ...
分类:
其他好文 时间:
2020-03-07 13:08:31
阅读次数:
54
//杨辉三角(数组) /* * @Description: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. * Input: 5 * Output: * [ * [1], * ...
分类:
编程语言 时间:
2020-03-06 15:00:14
阅读次数:
78
缺失的第一个正数。题意是给一个未排序的整数数组,找出其中没有出现的最小的正整数。例子, Example 1: Input: [1,2,0] Output: 3 Example 2: Input: [3,4,-1,1] Output: 2 Example 3: Input: [7,8,9,11,12] ...
分类:
其他好文 时间:
2020-03-06 10:59:55
阅读次数:
66
Given a binary tree, find the subtree with maximum average. Return the root of the subtree. Example 1 Input: {1,-5,11,1,2,4,-2} Output:11 Explanation: ...
分类:
其他好文 时间:
2020-03-05 13:42:34
阅读次数:
56
1 """ 2 Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? 3 Example: 4 Input: 3 5 Output: 5 6 Explanation: ...
分类:
其他好文 时间:
2020-03-04 23:30:47
阅读次数:
60
Input Output Sample Input 1 Sample Output 1 Sample Input 2 Sample Output 2 Sample Input 3 Sample Output 3 ...
分类:
其他好文 时间:
2020-02-29 18:53:12
阅读次数:
65
前提:pc主机,MBR架构 第一步:post(power on system test)加电自检。 pc机的主板上有个rom芯片(CMOS),加电后,cpu去找这个raw,然后读取里面的指令,检测机器上是否有:内存,硬盘,显示设备等。 CMOS里有个bios(basic input output s ...
分类:
其他好文 时间:
2020-02-28 17:15:55
阅读次数:
82
引入 Redis,Nginx,Netty,Node.js 为什么这么香?这些技术都是伴随 Linux 内核迭代中提供了高效处理网络请求的系统调用而出现的。今天我们从操作系统层面理解 Linux 下的网络 IO 模型! I/O( INPUT/OUTPUT),包括文件 I/O、网络 I/O。计算机世界里 ...
分类:
其他好文 时间:
2020-02-28 12:19:54
阅读次数:
46
一:“BIOS”与“PE”介绍 BIOS: BIOS是英文"Basic Input Output System"的缩略词,直译过来后中文名称就是"基本输入输出系统"。 它保存着计算机最重要的基本输入输出的程序、开机后自检程序和系统自启动程序,它可从CMOS中读写系统设置的具体信息。 其主要功能是为计 ...
分类:
移动开发 时间:
2020-02-26 23:09:29
阅读次数:
110
原文地址:https://www.cnblogs.com/zhou2019/p/10582716.html subprocess模块 subprocess是Python 2.4中新增的一个模块,它允许你生成新的进程,连接到它们的 input/output/error 管道,并获取它们的返回(状态)码 ...
分类:
编程语言 时间:
2020-02-25 09:38:08
阅读次数:
67