摘要:
@ RocketMQ (1) MQ message queue 简单来说,消息队列就是基础数据结构课程里“先进先出”的一种数据结构,但是如果要消除单点故障,保证消息传输的可靠性,并且还能应对大流量的冲击,对消息队列的要求就很高了。分布式消息队列可以提供应用解耦、流量消峰、消息分发等功能,已经成为大型 阅读全文
posted @ 2021-03-27 18:44
WilliamCui
阅读(124)
评论(0)
推荐(0)
摘要:
Get Kth Magic Number 第k 个数 有些数的素因子只有 3,5,7,请设计一个算法找出第 k 个数。注意,不是必须有这些素因子,而是必须不包含其他的素因子。例如,前几个数按顺序应该是 1,3,5,7,9,15,21。 输入: k = 5 输出: 9 思路 计算一个数的因子只有3,5 阅读全文
posted @ 2021-03-27 18:39
WilliamCui
阅读(255)
评论(0)
推荐(0)
摘要:
Partition List 分隔链表 Description Given the head of a linked list and a value x, partition it such that all nodes less than x come before nodes greater 阅读全文
posted @ 2021-03-27 18:38
WilliamCui
阅读(60)
评论(0)
推荐(0)
摘要:
Number of Recent Calls 最近的请求次数 Description You have a RecentCounter class which counts the number of recent requests within a certain time frame. Impl 阅读全文
posted @ 2021-03-27 18:35
WilliamCui
阅读(75)
评论(0)
推荐(0)


浙公网安备 33010602011771号