最新 最热

linux mpstat命令使用详解

1. mpstat命令 1.1 命令格式 mpstat [ -A ] [ -u ] [ -V ] [ -I { SUM | CPU | SCPU | ALL } ] [ -P { cpu [,...] | ON | ALL } ] [ interval [ count ] ] OPTIONS: -A: 等同...

2020-10-19
1

Less Coin Tosses(Gym - 102346L)【打表+找规律】

1.题意说的是给定你n位的二进制串,除了成对的(就是指那些1的个数相同或0的个数相同的),那些不成对的数有几个。比如n为3时,可以有000,001,010,011,100,101,110,111这八种二进制数,其中001可以与010配对,011可以与110配对,剩余...

2020-10-10
1

Java8 Stream 基本类型特化流

一、 基本类型特化流(数值流)在下面这段对流的操作的代码中,其实隐藏着一个问题: 装箱成本,每个原始类型都必须装箱成一个包装类型,如:Stream<Integer> integerStream = Stream.of(1, 2, 3);Integer sum = integerStream....

2020-10-09
1

Codeforces Round #502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2)C. The Phone Number

Mrs. Smith is trying to contact her husband, John Smith, but she forgot the secret phone number!

2020-09-28
1

网络学习笔记2——物理层基础(信号与系统)(未完待续)

的信号为周期信号,否则为非周期信号,最小的T为基波周期;对于离散信号而言,对于任意的n均满足

2020-09-24
0

Array - 16. 3Sum Closest

Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integer...

2020-09-23
1

Tree - 113. Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.

2020-09-23
1

Dynamic Programming - 64. Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.

2020-09-23
1

Tree - 112. Path Sum

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

2020-09-23
1

Array - 53. Maximum Subarray

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

2020-09-23
1