题目 Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exampl ...
分类:
其他好文 时间:
2020-07-10 20:58:33
阅读次数:
56
在学习决策树的时候,我们知道,其一大特点是:寻找最佳的决策树是NP完成问题。什么是NP完全问题,决策树的这一特点又是什么意思? 什么是NP完全问题 这里的NP其实是Non-deterministic Polynomial的缩写,即多项式复杂程度的非确定性问题,NP完全问题有时也会简称为NP-C问题。 ...
分类:
其他好文 时间:
2020-07-10 10:05:39
阅读次数:
48
package LeetCode_523 /** * 523. Continuous Subarray Sum * https://leetcode.com/problems/continuous-subarray-sum/description/ * * Given a list of non-n ...
分类:
其他好文 时间:
2020-07-09 00:47:21
阅读次数:
54
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. 只额外开O(k)的空间,那就开一个 ...
分类:
其他好文 时间:
2020-07-07 15:03:33
阅读次数:
121
lscpu 显示 CPU 的架构信息 lscpu 从 sysfs 和 proc/cpuinfo 中收集信息。这个命令的输出是规范的可以用来解析,或者给人来阅读。该命令显示的信息包括,CPU 的数量,线程 (thread),核心 (core),Socket 还有 Non-Uniform Memory ...
分类:
其他好文 时间:
2020-07-06 20:16:46
阅读次数:
136
linux五种IO模型与事件驱动模型 前言 Linux下主要的IO主要分为:阻塞IO(Blocking IO),非阻塞IO(Non-blocking IO),同步IO(Sync IO)和异步IO(Async IO)。 同步:调用端会一直等待服务端响应,直到返回结果。 异步:调用端发起调用之后不会立刻 ...
分类:
系统相关 时间:
2020-07-05 17:15:08
阅读次数:
72
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t ...
分类:
其他好文 时间:
2020-07-03 21:48:09
阅读次数:
68
Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. Formally, we can parti ...
分类:
其他好文 时间:
2020-07-03 21:13:36
阅读次数:
57
共识 1. 概述 共识机制是保证区块链中所有共识节点(即验证节点:validating peer,VP)按照相同顺序执行交易、写入账本的基础,记账节点(即非验证节点:non-validating peer,NVP)只需要从其所连接的共识节点中同步账本信息,因此无需参与共识。 Hyperchain平台 ...
分类:
其他好文 时间:
2020-07-03 17:32:50
阅读次数:
115
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string ...
分类:
其他好文 时间:
2020-07-03 10:41:10
阅读次数:
59