原题链接在这里:https://leetcode.com/problems/redundant-connection-ii/ 题目: In this problem, a rooted tree is a directed graph such that, there is exactly one ...
分类:
其他好文 时间:
2019-07-24 13:28:42
阅读次数:
94
Methodius received an email from his friend Polycarp. However, Polycarp's keyboard is broken, so pressing a key on it once may cause the corresponding ...
分类:
其他好文 时间:
2019-07-21 16:46:18
阅读次数:
107
CF1041C Coffee Break CF1041C Coffee Break CF1041C Coffee Break 题目大意: 给定nn个数和一个kk,这nn个数都不超过mm 每次从没被去掉的数里面选一个数aa,去掉aa,然后可以任意一个b(b>a+k)b(b>a+k),然后去掉任意一个c ...
分类:
其他好文 时间:
2019-07-11 23:19:34
阅读次数:
134
What exactly is the parameter e (event) and why pass it to JavaScript functions? 问题 Well, when I learned JavaScript, all the books and Internet articl ...
分类:
编程语言 时间:
2019-07-11 14:29:39
阅读次数:
131
Is It A Tree? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33083 Accepted Submission(s): 7574 ...
分类:
其他好文 时间:
2019-07-10 14:59:47
阅读次数:
106
本文是根据 Apache Flink 基础篇系列直播整理而成,由 Apache Flink PMC 戴资力与阿里巴巴高级产品专家陈守元共同分享。Apache Flink 系列入门教程每周更新一期,持续推送。
分类:
Web程序 时间:
2019-07-03 00:11:38
阅读次数:
134
1. 什么是多线程 线程,有时被称为轻量进程,是程序执行流的最小单元。一个标准的线程由线程ID,当前指令指针(PC),寄存器集合和堆栈组成。线程是进程中的一个实体,是被系统独立调度和分派的基本单位,线程不拥有私有的系统资源,但它可与同属一个进程的其它线程共享进程所拥有的全部资源。一个线程可以创建和撤 ...
分类:
编程语言 时间:
2019-06-30 12:40:07
阅读次数:
130
Prime Numbers Descriptions: A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. For example, the ...
分类:
其他好文 时间:
2019-06-29 22:36:17
阅读次数:
214
先从源码来深入理解一下 DirectKafkaInputDStream 的将 kafka 作为输入流时,如何确保 exactly-once 语义。 对应的源码如下: DirectKafkaInputDStream 的类声明如下: 简言之,Kafka RDD 的一个流,每一个指定的topic 的每一个 ...
分类:
其他好文 时间:
2019-06-26 00:39:53
阅读次数:
134
Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Given a non-e ...
分类:
其他好文 时间:
2019-06-24 00:38:42
阅读次数:
88