Nicksxs

Disruptor series three

Original link: https://nicksxs.me/2022/09/25/Disruptor-%E7%B3%BB%E5%88%97%E4%B8%89/ It’s been a bit misleading. gatingSequences is used to identify the operation site of each processer, but it is a bit unclear how to record and update. In fact, the problem is that gatingSequences is a Sequence array. First, let’s see how to add it. can be seen in This article is […]

Disruptor series three Read More »

Apollo client startup process analysis

Original link: https://nicksxs.me/2022/09/18/Apollo-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%90%AF%E5%8A%A8% E8%BF%87%E7%A8%8B%E5%88%86%E6%9E%90/ The entry can be marked with EnableApolloConfig annotation on the startup class of springboot This article is reprinted from: https://nicksxs.me/2022/09/18/Apollo-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%90%AF%E5%8A%A8% E8%BF%87%E7%A8%8B%E5%88%86%E6%9E%90/ This site is for inclusion only, and the copyright belongs to the original author.

Apollo client startup process analysis Read More »

Leetcode 1862 Sum of Floored Pairs (Sum of Floored Pairs *Hard*) Problem Analysis

Original link: https://nicksxs.me/2022/09/11/Leetcode-1862-%E5%90%91%E4%B8%8B%E5%8F%96%E6%95%B4%E6%95% B0%E5%AF%B9%E5%92%8C-Sum-of-Floored-Pairs-Hard-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ Topic introduction Given an integer array nums , return the sum of This article is reprinted from: https://nicksxs.me/2022/09/11/Leetcode-1862-%E5%90%91%E4%B8%8B%E5%8F%96%E6%95%B4%E6%95% B0%E5%AF%B9%E5%92%8C-Sum-of-Floored-Pairs-Hard-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 1862 Sum of Floored Pairs (Sum of Floored Pairs *Hard*) Problem Analysis Read More »

Leetcode 885 Spiral Matrix III ( Spiral Matrix III *Medium* ) Problem Analysis

Original link: https://nicksxs.me/2022/08/23/Leetcode-885-%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5-III-Spiral- Matrix-III-Medium-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ Topic introduction You start at the cell (rStart, cStart) of an rows x cols grid This article is reprinted from: https://nicksxs.me/2022/08/23/Leetcode-885-%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5-III-Spiral- Matrix-III-Medium-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 885 Spiral Matrix III ( Spiral Matrix III *Medium* ) Problem Analysis Read More »

A simple memory point of nginx

Original link: https://nicksxs.me/2022/08/21/%E4%B8%80%E4%B8%AA-nginx-%E7%9A%84%E7%AE%80%E5%8D%95 %E8%AE%B0%E5%BF%86%E7%82%B9/ When dealing with an nginx configuration last week, I found a small point that I didn’t understand before. Speaking of a scenario, our general processing method is that an ip port can only be configured with a domain name service, such as https://nicksxs.me corresponding to the configuration This article is reprinted

A simple memory point of nginx Read More »

Leetcode 278 First Bad Version ( First Bad Version *Easy* ) Problem Analysis

Original link: https://nicksxs.me/2022/08/14/Leetcode-278-%E7%AC%AC%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF% AF%E7%9A%84%E7%89%88%E6%9C%AC-First-Bad-Version-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E %90/ Topic introduction You are a product manager and currently leading a team to This article is reprinted from: https://nicksxs.me/2022/08/14/Leetcode-278-%E7%AC%AC%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF% AF%E7%9A%84%E7%89%88%E6%9C%AC-First-Bad-Version-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E %90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 278 First Bad Version ( First Bad Version *Easy* ) Problem Analysis Read More »

Leetcode 278 First Bad Version ( First Bad Version *Easy* ) Problem Analysis

Original link: https://nicksxs.me/2022/08/14/Leetcode-278-%E7%AC%AC%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF% AF%E7%9A%84%E7%89%88%E6%9C%AC-First-Bad-Version-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E %90/ Topic introduction You are a product manager and currently leading a team to This article is reprinted from: https://nicksxs.me/2022/08/14/Leetcode-278-%E7%AC%AC%E4%B8%80%E4%B8%AA%E9%94%99%E8%AF% AF%E7%9A%84%E7%89%88%E6%9C%AC-First-Bad-Version-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E %90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 278 First Bad Version ( First Bad Version *Easy* ) Problem Analysis Read More »

Leetcode 16 Closest Sum of Three Numbers ( 3Sum Closest *Medium* ) Problem Analysis

Original link: https://nicksxs.me/2022/08/06/Leetcode-16-%E6%9C%80%E6%8E%A5%E8%BF%91%E7%9A%84%E4%B8% 89%E6%95%B0%E4%B9%8B%E5%92%8C-3Sum-Closest-Medium-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90 / Topic introduction Given an integer array nums of length This article is reprinted from: https://nicksxs.me/2022/08/06/Leetcode-16-%E6%9C%80%E6%8E%A5%E8%BF%91%E7%9A%84%E4%B8% 89%E6%95%B0%E4%B9%8B%E5%92%8C-3Sum-Closest-Medium-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90 / This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 16 Closest Sum of Three Numbers ( 3Sum Closest *Medium* ) Problem Analysis Read More »

Let’s talk about how SpringBoot sets up non-web applications

Original link: https://nicksxs.me/2022/07/31/%E8%81%8A%E4%B8%80%E4%B8%8B-SpringBoot-%E8%AE%BE%E7%BD%AE %E9%9D%9E-web-%E5%BA%94%E7%94%A8%E7%9A%84%E6%96%B9%E6%B3%95/ find the reason This time I encountered a rather strange problem. I should publish the script uniformly and pass a uniform to the application startup parameters. This article is reprinted from: https://nicksxs.me/2022/07/31/%E8%81%8A%E4%B8%80%E4%B8%8B-SpringBoot-%E8%AE%BE%E7%BD%AE %E9%9D%9E-web-%E5%BA%94%E7%94%A8%E7%9A%84%E6%96%B9%E6%B3%95/ This site is for inclusion only, and the copyright belongs to the original author.

Let’s talk about how SpringBoot sets up non-web applications Read More »

Leetcode 1260 2D Grid Migration ( Shift 2D Grid *Easy* ) Problem Analysis

Original link: https://nicksxs.me/2022/07/22/Leetcode-1260-%E4%BA%8C%E7%BB%B4%E7%BD%91%E6%A0%BC%E8%BF% 81%E7%A7%BB-Shift-2D-Grid-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ Topic introduction Given a 2D grid of size mxn and This article is reprinted from: https://nicksxs.me/2022/07/22/Leetcode-1260-%E4%BA%8C%E7%BB%B4%E7%BD%91%E6%A0%BC%E8%BF% 81%E7%A7%BB-Shift-2D-Grid-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 1260 2D Grid Migration ( Shift 2D Grid *Easy* ) Problem Analysis Read More »

After reading “Changan’s Lychee”

Original link: https://nicksxs.me/2022/07/17/%E3%80%8A%E9%95%BF%E5%AE%89%E7%9A%84%E8%8D%94%E6% 9E%9D%E3%80%8B%E8%AF%BB%E5%90%8E%E6%84%9F/ I read Teacher Ma Boyong’s “Lychee of Chang’an” intermittently. At first, I read that this book ranks very high on the list, and it belongs to Ma Boyong. I have read his “Antique Game Middle Game” before, it is still very interesting, And it happened to be relatively short, but it

After reading “Changan’s Lychee” Read More »

Notes on the use of foreach in mybatis

Original link: https://nicksxs.me/2022/07/09/mybatis-%E7%9A%84-foreach-%E4%BD%BF%E7%94%A8%E7%9A%84%E6%B3 %A8%E6%84%8F%E7%82%B9/ Mybatis is a lightweight orm framework. If you want to use a statement similar to in query, in addition to directly replacing strings, you can also use the foreach tag to see that you can configure these fields in the dtd file of mybatis. This article is reprinted from: https://nicksxs.me/2022/07/09/mybatis-%E7%9A%84-foreach-%E4%BD%BF%E7%94%A8%E7%9A%84%E6%B3 %A8%E6%84%8F%E7%82%B9/

Notes on the use of foreach in mybatis Read More »

Leetcode 20 Valid Parentheses ( Valid Parentheses *Easy* ) Problem Analysis

Original link: https://nicksxs.me/2022/07/02/Leetcode-20-%E6%9C%89%E6%95%88%E7%9A%84%E6%8B%AC%E5%8F% B7-Valid-Parentheses-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ Topic introduction Given a string s containing just the characters This article is reprinted from: https://nicksxs.me/2022/07/02/Leetcode-20-%E6%9C%89%E6%95%88%E7%9A%84%E6%8B%AC%E5%8F% B7-Valid-Parentheses-Easy-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ This site is for inclusion only, and the copyright belongs to the original author.

Leetcode 20 Valid Parentheses ( Valid Parentheses *Easy* ) Problem Analysis Read More »