【Leetcode题解】2584. Split the Array to Make Coprime Products

Posted on Wed 08 March 2023 in Leetcode • Tagged with Contest, Math

又闲的无聊,找点事情做,来写一下2584. Split the Array to Make Coprime Products的题解。

题目

You are given a 0-indexed integer array nums of length n.

A split at an index i where 0 <= i <= n - 2 is …


Continue reading

【Leetcode题解】2444. Count Subarrays With Fixed Bound

Posted on Sat 04 March 2023 in Leetcode • Tagged with Contest, Subarray

今天闲的无聊,找点事情做,来写一下2444. Count Subarrays With Fixed Bound的题解。

题目

You are given an integer array nums and two integers minK and maxK.

A fixed-bound subarray of nums is a subarray that satisfies the …


Continue reading

[翻译]保卫自由的互联网,拒绝Web3

Posted on Sat 18 February 2023 in Computer Science • Tagged with Blockchain

原文标题:Keep the web free, say no to Web3

原文链接:https://yesterweb.org/no-to-web3/

新的想法,新的思潮,下一代互联网,Web3对每个人的意义都是独一无二的。币圈的铁杆粉丝们把这种基于区块 …


Continue reading

用 Python 进行代码覆盖率检测:coverage.py 和diff-cover 的使用方法

Posted on Sun 05 February 2023 in Computer Science • Tagged with Python

在重构项目时,我们经常需要确认代码测试的覆盖率。这是为了确保没有任何部分遗漏或者错误,从而使重构变得更安全 …


Continue reading

RocketMQ是什么

Posted on Sat 11 September 2021 in Computer Science

Apache RocketMQ is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level capacity and flexible scalability.

RocketMQ 是一个分布式消息中间件,其具有低延迟、高性能和可靠性、万亿级容 …


Continue reading

简单聊聊MySQL Binlog

Posted on Mon 30 August 2021 in Computer Science • Tagged with MySQL

Binlog (binary log)是一组日志文件,包含了对MySQL服务器进行的数据修改和变更,并持久化到磁盘中。Binlog以事件的格式存储,包括了所有的DDL和DML语句(例如数据表Schema的创建和变更,以及数据行的变更)。此外,每个Binlog …


Continue reading