Python Interview Notes: How to Choose Between Lists and Arrays?

Python Interview Notes: How to Choose Between Lists and Arrays?

📣 What Inspired This Series? The inspiration came from the real questions I encountered while preparing for Python interviews! 💡 I decided to use the Feynman Learning Technique— “learning by teaching”—to solidify my understanding through explanation. While organizing and sharing, I hope to: 🔹 Help myself└── Clear knowledge gaps → Strengthen theoretical foundations → Understand … Read more

Cista: A High-Performance Serialization and Reflection Library for C++

Cista: A High-Performance Serialization and Reflection Library for C++

Overview In modern software development, efficient processing and transmission of data are crucial. Cista is a high-performance, zero-copy serialization and reflection library designed for C++17, addressing the serialization and deserialization of complex data structures in a concise and efficient manner. Simplistic and Efficient Design Philosophy The design philosophy of Cista emphasizes simplicity and high performance. … Read more

C++ Programming Basics Lecture 8: Disjoint Set

C++ Programming Basics Lecture 8: Disjoint Set

IntroductionHello everyone, today I want to bring you a different topic:Disjoint Set👇 01Concept of Disjoint SetA disjoint set is a data structure that can dynamically maintainseveral non-overlapping sets, supporting merging and querying.The operations of a disjoint set generally consist ofthree steps: 1 Initialize each point's set to itself. Generally, this step only needs to be … Read more

C Language Exercises – Day 36

C Language Exercises - Day 36

01 The data structure that is independent of the computer used is the A. Storage structure B. Logical structure C. Physical structure D. Physical and storage structure Answer: B Explanation: Brief 02 Among the following statements, the incorrect one is: A. The storage structure of data is closely related to the efficiency of data processing … Read more

C++ Data Structures and Algorithms: Linked Lists

C++ Data Structures and Algorithms: Linked Lists

In C++, a linked list is a dynamic data structure composed of a series of nodes, each containing a data field and a pointer field (pointing to the next adjacent node). Unlike arrays that use contiguous memory, linked list nodes are stored in non-contiguous memory, linked together by pointers, thus providing flexible insertion/deletion features. 1. … Read more

Beyond List, Dict, and Tuple: The Comprehensive Collection of Containers in Python’s Standard Library

Beyond List, Dict, and Tuple: The Comprehensive Collection of Containers in Python's Standard Library

What is the collections module? When writing Python, you definitely rely on built-in containers like <span>list</span>, <span>dict</span>, and <span>tuple</span>. But did you know that there is a “comprehensive collection of containers” hidden in the standard library—<span>collections</span>? It acts like a B-level enhancement patch for Python’s native containers, providing a bunch of advanced data structures specifically … Read more

Mathematics in Python | Sets

Mathematics in Python | Sets

Sets are an unordered data structure with unique elements that can be created in specific ways, allowing for deduplication and various operations between sets. They are commonly used data tools that handle element uniqueness and set relationships. 01 Sets The corresponding data structure for sets in Python is set, and its basic usage is as … Read more

C++ Wheel-Making: Handcrafted List Container

C++ Wheel-Making: Handcrafted List Container

In C++, a List is essentially a doubly linked circular list with a head node. Sounds a bit convoluted, right? Many friends struggle to understand the difference between List and vector when they first learn about it… Please take a look at this image 👇 Image: A doubly linked circular list with a head node, … Read more