Description here is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, ...
分类:
其他好文 时间:
2019-08-05 19:06:21
阅读次数:
95
说明 在分布式系统中都涉及到全局序列号的问题,网上分布式id生成的核心思路大概有以下几种 1. 基于redis的原子操作,java中spring提供了 RedisAtomicLong 可进行 long 型的线程安全操作 1. 基于mysql的自增主键 1. 基于雪花算法 Snowflake 1. 基 ...
分类:
其他好文 时间:
2019-08-05 18:58:35
阅读次数:
135
基于对tcp/ip的的三次握手,四次挥手不是很了解,所以花了一点时间查询了相关知识,并对其知识点进行了汇总,并且给自己理了下记忆思路。 三次握手 ① 第一次握手 客户端发送请求(syn:synchronization),并选择一个初始化序号(seq:sequence) syn=1;seq=x 客户端 ...
分类:
其他好文 时间:
2019-08-04 22:37:14
阅读次数:
151
XOR Clique Press the Button Kuririn MIRACLE Traveling on the Axis Couleur Chaleur Infinite Parenthesis Sequence Pixel Art Halting Problem Red Black Tr ...
分类:
其他好文 时间:
2019-08-04 15:09:49
阅读次数:
123
UML 是一种开放的方法用于说明,可视化,构建和编写一个正在开发的面向对象的,软件密集系统的制品的开放方法 特点展现了一系列最佳工程实践对大规模,复杂系统进行建模方面特别是在软件架构层次已被验证有效 uml 2.2结构式图形:强调的是系统式的建模行为式图形:强调系统模型中触发的事件交互式图形:属于行 ...
分类:
其他好文 时间:
2019-08-04 10:46:33
阅读次数:
110
题目描述 God Water likes to eat meat, fish and chocolate very much, but unfortunately, the doctor tells him that some sequence of eating will make them po ...
分类:
其他好文 时间:
2019-08-04 01:20:45
阅读次数:
111
Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+1??, ..., N?j?? } where 1. The Max ...
分类:
其他好文 时间:
2019-08-03 11:06:46
阅读次数:
94
A. Digits Sequence Dividing 注意特殊情况,在$n = 2$时除非$str[1] = str[2]$,否则可以把第一个数划分下来,剩下的数直接当成一组,一定满足条件。 C. Brutality 用堆维护连续子段最大和即可。 D. Compression 实质上是把这图压缩到 ...
分类:
其他好文 时间:
2019-08-03 00:15:44
阅读次数:
86
题目链接 "Operation" Problem Description There is an integer sequence a of length n and there are two kinds of operations: 0 l r: select some numbers from ...
分类:
其他好文 时间:
2019-08-02 20:41:15
阅读次数:
83