July 2023

Git’s commit and commit range study notes

Original link: https://hsiaofongw.notion.site/Git-commit-commit-range-e2561c9d88c041b6ad45f0589d136be3 This article introduces the concept and syntax of commit and commit range in Git, as well as commonly used Git commands such as git rev-list and git rev-parse. In addition, several methods for merging multiple commits are described, including git cherry-pick, git reset, and git rebase. Finally, the concept of merge base […]

Git’s commit and commit range study notes Read More »

LeetCode 256 Paint House

Original link: https://hsiaofongw.notion.site/LeetCode-256-Paint-House-0f832cc3e3ed407391750380bbbbb247 This article discusses the dynamic programming (DP) algorithm design technique and uses LeetCode 256 Paint House as an example to demonstrate its application. The problem is to paint n houses with three colors such that no two adjacent houses have the same color. A cost matrix is given, and the goal is

LeetCode 256 Paint House Read More »

TypeScript type gymnastics

Original link: https://hsiaofongw.notion.site/TypeScript-c3a034e447904ab998e3e1f2197eda94 This article introduces type programming techniques in TypeScript, including tuple operations, string conversion, substring lookup, and character splitting. These tips can help us make better use of TypeScript’s static checking features, check the code at compile time, and reduce the amount of code. This article is transferred from: https://hsiaofongw.notion.site/TypeScript-c3a034e447904ab998e3e1f2197eda94 This site is

TypeScript type gymnastics Read More »

Generate all N-element permutations based on linked list

Original link: https://hsiaofongw.notion.site/N-permutations-4a27cfbf1e1942be982fcc8d1f0e4336 This article introduces how to use a linked list to generate N-element permutations, and provides C++ code implementation. The article also discusses the situation where there are repeated elements, and gives the corresponding code implementation. Finally, the article briefly introduces other applications of the linked list data structure. This article is transferred

Generate all N-element permutations based on linked list Read More »

Reading of C declarations

Original link: https://hsiaofongw.notion.site/C-493c63d36190434aa87290a498e0aea9 This article introduces the concept of declaration in C language, as well as the syntax and parsing process of the declaration statement. Through multiple cases, it helps readers understand different forms of declarators, such as pointers, arrays, functions, etc. The article also introduces how the parser converts the declaration statement into an

Reading of C declarations Read More »

Comparison based on golang channel implementation

Original link: https://hsiaofongw.notion.site/golang-channel-f9d43933c78b4b85ab2459c13f023497 This article introduces how to use golang channel to achieve comparison. By implementing the Walkable interface and the IsEqual function, any type that implements the Walkable interface can be compared, including custom structures, trees, slices, files, etc. As long as a type is Walkable, and the value visited during the Walk can

Comparison based on golang channel implementation Read More »

Sketching and implementing a binary protocol: Concepts and Concerns

Original link: https://hsiaofongw.notion.site/Sketching-and-implementing-a-binary-protocol-Concepts-and-Concerns-d15cb4f3a65e4318856898ce95abc022 This article introduces how to use the binary protocol as a communication protocol between applications, and introduces how to implement framing code at the application layer, making it easier for upper-layer code to receive messages, send requests, and process requests. At the same time, it also introduces the easy-to-use API provided by

Sketching and implementing a binary protocol: Concepts and Concerns Read More »

Generate all N-element permutations based on linked list

Original link: https://hsiaofongw.notion.site/N-permutations-4a27cfbf1e1942be982fcc8d1f0e4336 This article introduces how to use a linked list to generate N-element permutations, and provides C++ code implementation. The article also discusses the situation where there are repeated elements, and gives the corresponding code implementation. Finally, the article briefly introduces other applications of the linked list data structure. This article is transferred

Generate all N-element permutations based on linked list Read More »

Reading of C declarations

Original link: https://hsiaofongw.notion.site/C-493c63d36190434aa87290a498e0aea9 This article introduces the concept of declaration in C language, as well as the syntax and parsing process of the declaration statement. Through multiple cases, it helps readers understand different forms of declarators, such as pointers, arrays, functions, etc. The article also introduces how the parser converts the declaration statement into an

Reading of C declarations Read More »

Comparison based on golang channel implementation

Original link: https://hsiaofongw.notion.site/golang-channel-f9d43933c78b4b85ab2459c13f023497 This article introduces how to use golang channel to achieve comparison. By implementing the Walkable interface and the IsEqual function, any type that implements the Walkable interface can be compared, including custom structures, trees, slices, files, etc. As long as a type is Walkable, and the value visited during the Walk can

Comparison based on golang channel implementation Read More »

Sketching and implementing a binary protocol: Concepts and Concerns

Original link: https://hsiaofongw.notion.site/Sketching-and-implementing-a-binary-protocol-Concepts-and-Concerns-d15cb4f3a65e4318856898ce95abc022 This article introduces how to use the binary protocol as a communication protocol between applications, and introduces how to implement framing code at the application layer, making it easier for upper-layer code to receive messages, send requests, and process requests. At the same time, it also introduces the easy-to-use API provided by

Sketching and implementing a binary protocol: Concepts and Concerns Read More »

little yellow duck

Original link: https://zhou.ge/2023-07-28.html The chick’s first seven days have not yet passed, and the daughter-in-law came back with a pair of ducklings . Last night, my daughter-in-law came back from get off work and passed by a roadside stall. She saw someone selling ducklings and brought two back without saying a word… The children jumped

little yellow duck Read More »

07-24~07-30. Hu’s Weekly (No. 101).md

Original text link: https://weekly.howie6879.com//2023/07-24~07-30. Lao Hu’s Weekly (No. 101).html If there is a problem with viewing the style, you can browse through the webpage: 07-24~07-30. Lao Hu’s Weekly (No. 101) Lao Hu’s Information Weekly , records the valuable information I saw this week, mainly for the computer field, and the content theme is largely dominated

07-24~07-30. Hu’s Weekly (No. 101).md Read More »