beyond stars

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 »

LeetCode 256 Paint House

Original link: https://www.notion.so/LeetCode-256-Paint-House-0f832cc3e3ed407391750380bbbbb247 This article is transferred from: https://www.notion.so/LeetCode-256-Paint-House-0f832cc3e3ed407391750380bbbbb247 This site is only for collection, and the copyright belongs to the original author.

LeetCode 256 Paint House Read More »