Mastering FreeRTOS from Scratch (3): Inserting and Deleting Nodes in Linked Lists

Mastering FreeRTOS from Scratch (3): Inserting and Deleting Nodes in Linked Lists

The previous article introduced the basic concepts of FreeRTOS linked lists, and this article will explain how to insert and delete nodes. Inserting Nodes To insert a node into a linked list, you first need to break the connection between the two nodes at the insertion point, and then connect the new node to these … Read more

Comprehensive Analysis of C++ Data Structures: 20 Core Implementation Solutions from Linked Lists to Graph Theory

Comprehensive Analysis of C++ Data Structures: 20 Core Implementation Solutions from Linked Lists to Graph Theory

1. Advanced Practice of Linear Data Structures 1.1 Deep Implementation of Linked List The linked list, as the most basic dynamic data structure, has a wide range of variants and application scenarios. Below is the complete implementation of a doubly linked list: #include <iostream> #include <memory> template<typename T> class Node { public: T data; std::unique_ptr<Node<T>> … Read more

Popular Algorithm 100: 160. Intersection of Two Linked Lists

Popular Algorithm 100: 160. Intersection of Two Linked Lists

Popular Algorithm 100: 160. Intersection of Two Linked Lists Overview Given the head nodes of two singly linked lists, headA and headB, find and return the starting node where the two linked lists intersect. If there is no intersection, return null. The two linked lists intersect at node c1: The problem guarantees that there are … Read more

How to Write Maintainable Embedded Programming Code?

How to Write Maintainable Embedded Programming Code?

1 Object-Oriented C Object-oriented languages are closer to human thinking patterns, significantly reducing code complexity while enhancing code readability and maintainability. Traditional C code can also be designed to be readable, maintainable, and of lower complexity. This article will illustrate this with a practical example. 2 Basic Knowledge 2.1 Structures In addition to providing basic … Read more

C Language Pointers: From Beginner to Mastery – A Comprehensive Guide

C Language Pointers: From Beginner to Mastery - A Comprehensive Guide

Recent Hot Articles 2025 Latest C Language Learning Path | Beginner, Intermediate, PracticalC Language Learning Guide: Have You Mastered These Core Knowledge Points?C Language Functions: From Beginner to Mastery – A Comprehensive GuideBeginner’s Guide to Avoiding Pitfalls in C Language: Avoid These 12 Devilish Details for Double Efficiency!C Language Examples | Creating, Inserting, and Traversing … Read more