Tagged articles
72 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Dec 24, 2025 · Fundamentals

Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes

This article explains how Linux thread stacks work, why improper stack size or unchecked recursion can cause crashes and memory leaks, and provides practical debugging tools, stack‑size tuning methods, and optimization techniques—including thread‑pool usage and real‑world case studies—to keep concurrent programs stable and efficient.

StackThreaddebugging
0 likes · 28 min read
Why Linux Threads Crash: Uncovering Thread‑Stack Pitfalls and Fixes
Deepin Linux
Deepin Linux
Aug 24, 2025 · Fundamentals

Why Is Stack Memory Faster Than Heap? A Deep Dive into Stack vs. Heap Allocation

This article explains the fundamental differences between stack and heap memory allocation, covering their allocation mechanisms, performance characteristics, common pitfalls such as stack overflow and memory leaks, practical code examples in C/C++, and typical interview questions to help developers choose the right memory model for their applications.

HeapMemory ManagementStack
0 likes · 65 min read
Why Is Stack Memory Faster Than Heap? A Deep Dive into Stack vs. Heap Allocation
Liangxu Linux
Liangxu Linux
Jun 16, 2025 · Fundamentals

Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained

This article clarifies whether a C++ vector object resides on the stack, heap, or in static storage, explains that its elements are almost always allocated on the heap, covers special cases like small‑vector optimization, and provides interview‑ready answers with sample code and memory‑location experiments.

C++HeapMemory Management
0 likes · 12 min read
Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained
Java Tech Enthusiast
Java Tech Enthusiast
Apr 26, 2025 · Fundamentals

Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights

The article reflects on why mid‑career engineers are often relegated to legacy‑maintenance work, argues that such roles can be leveraged for growth by modernizing systems and adopting AI, and then presents the classic Valid Parentheses coding challenge, explaining a stack‑based solution with implementations, complexity analysis, and common pitfalls.

PythonStackalgorithm
0 likes · 14 min read
Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights
php Courses
php Courses
Apr 2, 2025 · Fundamentals

Implementing a Queue Using Two Stacks in PHP

This article explains the principles of queues and stacks, demonstrates how to simulate a FIFO queue using two LIFO stacks in PHP, provides full source code, usage examples, complexity analysis, and discusses practical applications and possible extensions.

Data StructurePHPQueue
0 likes · 5 min read
Implementing a Queue Using Two Stacks in PHP
Liangxu Linux
Liangxu Linux
Jan 20, 2025 · Fundamentals

Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance

This article explains the fundamental differences between stack and heap memory, covering their structures, allocation strategies, performance characteristics, language-specific examples in Java, C++, and Python, and provides guidance on when to use each type for efficient programming.

C++HeapMemory Management
0 likes · 16 min read
Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance
Linux Kernel Journey
Linux Kernel Journey
Jan 9, 2025 · Fundamentals

How Does a Linux Process Use Memory? A Deep Dive

This article explains the Linux kernel’s memory management for a process, covering virtual address spaces, page‑fault handling, VMA allocation, stack and heap initialization, sbrk/brk usage, thread‑stack creation, and the glibc ptmalloc heap allocator with concrete code examples and diagrams.

HeapLinuxPage Fault
0 likes · 15 min read
How Does a Linux Process Use Memory? A Deep Dive
php Courses
php Courses
Nov 8, 2024 · Backend Development

Simulating Recursion in PHP Using Stacks, Loops, and Goto

This article explains how to replace recursive functions in PHP with stack‑based iteration, loop‑driven depth‑first tree traversal, and even a goto‑based approach, providing complete code examples and discussing the trade‑offs of each method.

GotoRecursionStack
0 likes · 7 min read
Simulating Recursion in PHP Using Stacks, Loops, and Goto
Java Tech Enthusiast
Java Tech Enthusiast
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation in C

The article explains C’s memory allocation, detailing how functions like malloc obtain heap space, the role of system calls such as brk, the distinction between stack and heap, address layout, fragmentation challenges, and practical implications for efficient dynamic memory management.

C ProgrammingHeapMemory Fragmentation
0 likes · 5 min read
Understanding Memory Allocation in C
Liangxu Linux
Liangxu Linux
May 21, 2024 · Fundamentals

Inside a Function Call: Registers, Stack, and Assembly Explained

This article systematically analyzes a function call in an embedded system from four perspectives—assembly code, registers, stack layout, and map files—illustrating how the compiler generates the call, what values each register holds, how the stack is allocated, and how to trace execution using disassembly and memory views.

AssemblyRegistersStack
0 likes · 7 min read
Inside a Function Call: Registers, Stack, and Assembly Explained
Liangxu Linux
Liangxu Linux
Apr 21, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained

This article explains C language memory partitioning—including stack, heap, global/static, constant, and code sections—illustrates their characteristics and growth directions, then applies the concepts to STM32F103 by showing memory map details and providing a complete Keil‑based C program that prints the addresses of variables in each region.

Data SegmentHeapSTM32
0 likes · 10 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained
Liangxu Linux
Liangxu Linux
Apr 5, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections

This article explains the C language memory segmentation—including stack, heap, global/static, constant, and code areas—illustrates their behavior on STM32F103 with Keil V5, and provides detailed example code that prints the addresses of variables in each region to demonstrate allocation and lifetime.

HeapSTM32Stack
0 likes · 9 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections
Java Backend Technology
Java Backend Technology
Mar 19, 2024 · Backend Development

6 Common Java OOM Scenarios and How to Prevent Them

This article explains six typical OutOfMemoryError situations in Java—heap, native thread, stack overflow, direct buffer, GC overhead, and Metaspace—provides code examples that trigger each issue, shows the resulting exception messages, and offers practical tips such as using thread pools, limiting recursion depth, adjusting GC settings, and configuring Metaspace to avoid these memory problems.

HeapJVMMetaspace
0 likes · 9 min read
6 Common Java OOM Scenarios and How to Prevent Them
政采云技术
政采云技术
Dec 28, 2023 · Fundamentals

Queue and Stack Concepts, Implementations, and Applications in Java

This article explains the definitions, characteristics, and overflow cases of sequential and circular queues and stacks, provides Java implementations for these data structures, demonstrates their usage with sample code and results, and discusses practical applications of queue thinking in database-driven workflows.

QueueStackalgorithm
0 likes · 13 min read
Queue and Stack Concepts, Implementations, and Applications in Java
37 Interactive Technology Team
37 Interactive Technology Team
Nov 20, 2023 · Fundamentals

What Are Stack and Heap?

The article explains Go’s stack and heap memory, showing that stack allocations are fast, LIFO‑ordered and compile‑time sized while heap allocations grow upward, require garbage collection, and occur when variables escape a function, urging developers to prefer stack use for better performance.

Garbage CollectionGoHeap
0 likes · 6 min read
What Are Stack and Heap?
Liangxu Linux
Liangxu Linux
Sep 2, 2023 · Fundamentals

Mastering C Memory Layout: Stacks, Heaps, Segments, and const Usage

This article explains the five memory partitions in C, the storage regions created during compilation and linking, the different program segments (code, RO data, RW data, BSS, heap, stack), the proper use of const and pointers, 8051-specific memory qualifiers, and a detailed comparison of stack and heap allocation, including practical code examples.

C ProgrammingData SegmentsHeap
0 likes · 25 min read
Mastering C Memory Layout: Stacks, Heaps, Segments, and const Usage
Open Source Linux
Open Source Linux
Aug 16, 2023 · Fundamentals

Mastering C Memory Layout: Stack, Heap, and Data Segments Explained

This article provides a comprehensive guide to C memory organization, covering the five primary memory regions, the layout of compiled C programs, detailed segment types such as code, read‑only, read‑write, BSS, heap and stack, as well as const usage, pointer rules, and embedded‑system storage qualifiers.

C ProgrammingHeapStack
0 likes · 25 min read
Mastering C Memory Layout: Stack, Heap, and Data Segments Explained
vivo Internet Technology
vivo Internet Technology
Apr 12, 2023 · Mobile Development

Exploring FLAG_ACTIVITY_NEW_TASK and Activity Stack Validation in Android

The article investigates a real‑world Android navigation bug by dissecting how FLAG_ACTIVITY_NEW_TASK interacts with launch modes, task affinities and intent construction, revealing that the flag does not always behave like singleTask, that START_DELIVERED_TO_TOP may fail to deliver new intents, and offering debugging steps and practical fixes.

ActivityAndroidFLAG_ACTIVITY_NEW_TASK
0 likes · 23 min read
Exploring FLAG_ACTIVITY_NEW_TASK and Activity Stack Validation in Android
AI Cyberspace
AI Cyberspace
Mar 25, 2023 · Fundamentals

Mastering C Memory Management: malloc, realloc, memset, memcpy & More

This article explains how C programs allocate, resize, initialize, and transfer memory using functions like malloc, free, realloc, memset, memcpy, memmove, and alloca, and provides coding standards to avoid out‑of‑bounds errors, leaks, and use‑after‑free bugs.

MemcpyStackc++
0 likes · 11 min read
Mastering C Memory Management: malloc, realloc, memset, memcpy & More
Programmer DD
Programmer DD
Jul 21, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, and Stack Explained

This article explains the JVM memory layout, covering the heap area, its configurable size and generational structure, the Metaspace replacement for PermGen, the thread‑private virtual machine stack and native method stack, as well as the program counter register and related garbage‑collection behavior.

HeapJVMMetaspace
0 likes · 14 min read
Understanding JVM Memory Layout: Heap, Metaspace, and Stack Explained
DaTaobao Tech
DaTaobao Tech
Jul 14, 2022 · Frontend Development

Implementing a Simple HTML Parser in JavaScript

The article walks through building a simple JavaScript HTML parser by explaining browser parsing basics, using regular expressions to detect tags, managing a stack to match opening and closing elements, creating element and text node objects, and outlining code snippets while noting omitted features like script and style handling.

DOMHTML parserJavaScript
0 likes · 9 min read
Implementing a Simple HTML Parser in JavaScript
TAL Education Technology
TAL Education Technology
Jul 1, 2022 · Fundamentals

Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture

This article explains how the Java Virtual Machine achieves write‑once‑run‑anywhere by abstracting platform differences, then details the JVM’s internal components—including the class‑loader subsystem, runtime data areas such as heap, stack, method area, and program counter—followed by code examples and analysis of object layout, pointer compression, and memory allocation strategies.

Garbage CollectionHeapJVM
0 likes · 30 min read
Why the JVM Can Run Cross‑Platform and an In‑Depth Look at Its Internal Architecture
Top Architect
Top Architect
Jun 24, 2022 · Fundamentals

Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter

This article explains the JVM memory architecture, covering the heap (young and old generations, Eden and Survivor spaces), Metaspace, virtual machine stacks, native method stacks, and the program counter register, while also illustrating key JVM parameters and bytecode execution with examples.

Garbage CollectionHeapJVM
0 likes · 13 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter
Taobao Frontend Technology
Taobao Frontend Technology
Apr 21, 2022 · Frontend Development

Build a Simple HTML Parser in JavaScript: Step-by-Step Guide

This article explains how to create a basic HTML parser in JavaScript by using regular expressions and a stack to convert an HTML string into a tree of nodes, complete with code examples, initialization steps, and handling of opening, closing, and self‑closing tags.

DOMHTML parserJavaScript
0 likes · 9 min read
Build a Simple HTML Parser in JavaScript: Step-by-Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 14, 2021 · Fundamentals

Introduction to Data Structures and Algorithms: Basics, Sorting, and Advanced Structures

This article introduces the fundamentals of data structures and algorithms, covering basic structures such as arrays and linked lists, common sorting algorithms, advanced structures like B+ trees and red‑black trees, explains Big O notation, and provides Java code examples for dynamic arrays, linked lists, queues, and stacks.

AlgorithmsArraysBig O
0 likes · 15 min read
Introduction to Data Structures and Algorithms: Basics, Sorting, and Advanced Structures
Liangxu Linux
Liangxu Linux
Oct 10, 2021 · Fundamentals

Understanding Hardware and Linux Stacks: From Function Calls to Multitasking

This article explains the concept of a stack as a LIFO data structure, its hardware implementation in CPUs, how it supports function calls and multitasking, and details the four types of stacks used in Linux—including process, thread, kernel, and interrupt stacks—along with code examples and diagrams.

HardwareLinuxMultitasking
0 likes · 20 min read
Understanding Hardware and Linux Stacks: From Function Calls to Multitasking
Top Architect
Top Architect
Oct 6, 2021 · Fundamentals

Understanding JVM Memory Layout and Allocation

This article provides a comprehensive overview of the Java Virtual Machine memory architecture, covering heap layout, allocation, tuning parameters, garbage collection, stack frames, method area, metaspace, native method stack, program counter, direct memory, and code cache, with practical code examples and diagnostics.

HeapJVMMemory Management
0 likes · 16 min read
Understanding JVM Memory Layout and Allocation
JavaEdge
JavaEdge
Jul 2, 2021 · Backend Development

How to Diagnose and Reproduce Different Java OOM Errors

This article explains the various types of Java OutOfMemoryError, shows how to trigger each one on HotSpot JVM, provides diagnostic steps and relevant JVM flags, and offers practical code examples for heap, stack, metaspace, and direct memory overflow scenarios.

DirectMemoryJVMMetaspace
0 likes · 16 min read
How to Diagnose and Reproduce Different Java OOM Errors
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 24, 2021 · Fundamentals

Master Data Structures & Algorithms: Comprehensive Guide with Visual Tools

This article provides a comprehensive overview of data structures and algorithms, covering fundamental concepts such as data, elements, objects, logical and storage structures, common structures like lists, stacks, queues, trees, graphs, algorithm design techniques, complexity analysis, and includes visual resources and code examples.

AlgorithmsData StructuresQueue
0 likes · 33 min read
Master Data Structures & Algorithms: Comprehensive Guide with Visual Tools
Intelligent Backend & Architecture
Intelligent Backend & Architecture
May 13, 2021 · Fundamentals

Mastering Data Structures: From Basics to Advanced Implementations

This comprehensive guide explains core data concepts, defines data, data objects, elements and types, explores logical and physical structures, details sequential, linked, indexed and hash storage, and provides Java code examples for arrays, linked lists, stacks, queues, trees, binary search trees, AVL and red‑black trees, illustrating how to choose and implement appropriate structures for real‑world problems.

AlgorithmsData StructuresQueue
0 likes · 24 min read
Mastering Data Structures: From Basics to Advanced Implementations
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 21, 2021 · Fundamentals

Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory

This article explains Java 8's memory architecture, detailing the differences between JVM-managed memory and native memory, and describing each runtime data area—including the program counter, JVM stack, native method stack, heap, method area, and direct memory—along with common questions about variable storage and native methods.

HeapMemory ManagementNative Memory
0 likes · 13 min read
Understanding Java 8 Memory Structure: JVM Areas, Stack, Heap, and Native Memory
Selected Java Interview Questions
Selected Java Interview Questions
Mar 10, 2021 · Fundamentals

Understanding Java Heap, Stack, Metaspace, and Direct Memory OutOfMemoryError with Examples

This article explains the causes of various Java OutOfMemoryError scenarios—including heap, stack, metaspace, and direct memory overflow—provides diagnostic tools, shows reproducible code examples, and offers practical solutions such as adjusting JVM parameters and optimizing code to prevent memory exhaustion.

HeapJVMMetaspace
0 likes · 17 min read
Understanding Java Heap, Stack, Metaspace, and Direct Memory OutOfMemoryError with Examples
IT Xianyu
IT Xianyu
Dec 30, 2020 · Fundamentals

Quick Introduction to 8 Common Data Structures

This article provides a concise overview of eight essential data structures—arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs—explaining their definitions, core operations, and typical applications in software development and computer science.

AlgorithmsArraysData Structures
0 likes · 12 min read
Quick Introduction to 8 Common Data Structures
IT Xianyu
IT Xianyu
Nov 3, 2020 · Fundamentals

Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples

This article explains the difference between value passing and reference passing in Java, clarifies how primitive and object types are stored in stack and heap, and demonstrates the behavior with concrete code examples showing how modifications affect (or do not affect) the original arguments.

HeapParameter PassingStack
0 likes · 6 min read
Value vs Reference Passing in Java: Concepts, Stack vs Heap, and Code Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 8, 2020 · Fundamentals

Understanding the JDK Stack Implementation and Its Practical Applications

This article explains the meaning of "stack" in Java, examines the JDK's Stack class implementation—including its inheritance from Vector and core methods—provides full source code, demonstrates array manipulation with System.arraycopy, and explores common stack applications such as browser navigation, function call stacks, and complexity analysis.

ArrayData StructureJDK
0 likes · 8 min read
Understanding the JDK Stack Implementation and Its Practical Applications
Programmer DD
Programmer DD
Sep 6, 2020 · Fundamentals

Understanding Java JVM Memory Model: All Runtime Data Areas Explained

This article provides a comprehensive overview of the Java Virtual Machine memory model, detailing each runtime data area—including the heap, stacks, method area, program counter, and direct memory—and explains their purposes and interactions within Java applications.

HeapJVMMemory Model
0 likes · 4 min read
Understanding Java JVM Memory Model: All Runtime Data Areas Explained
Selected Java Interview Questions
Selected Java Interview Questions
May 26, 2020 · Fundamentals

Eight Common Data Structures Every Programmer Should Know

This article introduces eight fundamental data structures—arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs—explaining their definitions, core operations, typical applications, and visual illustrations to help programmers master essential concepts for software development and technical interviews.

ArrayData StructuresQueue
0 likes · 12 min read
Eight Common Data Structures Every Programmer Should Know
ITPUB
ITPUB
Mar 25, 2020 · Fundamentals

Essential Data Structures Every Programmer Should Master

This article introduces eight fundamental data structures—arrays, linked lists, stacks, queues, hash tables, trees, heaps, and graphs—explaining their definitions, core operations, typical applications, and key characteristics to help developers build a solid foundation.

ArrayData StructuresQueue
0 likes · 13 min read
Essential Data Structures Every Programmer Should Master
Architect's Tech Stack
Architect's Tech Stack
Jan 18, 2020 · Fundamentals

JVM Memory Architecture: Overview, Heap, Metaspace, Stack, and More

This article provides a comprehensive overview of the Java Virtual Machine memory layout, covering heap regions, Metaspace, stack frames, native method stack, program counter, direct memory, and code cache, along with configuration tips, diagnostic commands, and illustrative code examples to help readers understand memory allocation and garbage collection.

Garbage CollectionHeapJVM
0 likes · 16 min read
JVM Memory Architecture: Overview, Heap, Metaspace, Stack, and More
Programmer DD
Programmer DD
Oct 28, 2019 · Backend Development

Building a Startup Backend: Essential Stack Choices and Best Practices

This comprehensive guide walks through the four‑layer backend stack, component selection for startups—including languages, databases, messaging, monitoring, and deployment tools—and offers practical advice on choosing cloud providers, defining processes, and designing a cloud‑centric architecture for fast‑moving companies.

BackendStackcloud
0 likes · 31 min read
Building a Startup Backend: Essential Stack Choices and Best Practices
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 14, 2019 · Fundamentals

Differences Between Java List Implementations: ArrayList, LinkedList, Vector, and Stack

This article provides a detailed comparison of Java's List interface implementations—ArrayList, LinkedList, Vector, and Stack—explaining their underlying data structures, key methods such as get, set, add, and remove, performance characteristics, thread safety, and appropriate usage scenarios.

ArrayListData StructuresLinkedList
0 likes · 18 min read
Differences Between Java List Implementations: ArrayList, LinkedList, Vector, and Stack
Programmer DD
Programmer DD
Oct 7, 2019 · Backend Development

How Many Threads Can a Java JVM Actually Handle? Limits, Experiments, and Tips

This article explores the maximum number of threads a Java Virtual Machine can support, examining factors such as CPU, operating system, JVM version, and memory, and presents real‑world experiments, code examples, and theoretical calculations to help developers understand and manage thread limits effectively.

JVMMemoryStack
0 likes · 6 min read
How Many Threads Can a Java JVM Actually Handle? Limits, Experiments, and Tips
Java Captain
Java Captain
Jan 5, 2019 · Fundamentals

Implementing Stack, Queue, and Priority Queue in Java

This article explains the core concepts of stacks, queues, and priority queues, discusses their time complexities, and provides complete Java implementations using arrays, including methods for insertion, removal, peeking, and display, along with a circular array queue example.

QueueStackjava
0 likes · 8 min read
Implementing Stack, Queue, and Priority Queue in Java
Java Captain
Java Captain
Dec 17, 2018 · Fundamentals

Understanding Java Heap and Stack Memory with Examples

This article explains the differences between Java heap and stack memory, their advantages and disadvantages, and demonstrates how string objects are stored and shared using code examples that illustrate memory allocation and reference behavior.

Garbage CollectionHeapMemory Management
0 likes · 4 min read
Understanding Java Heap and Stack Memory with Examples
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 18, 2018 · Frontend Development

How LINE Manga Achieves Native‑Like Page Transitions with a Page Stack

This article explains how LINE Manga uses a custom Page Stack architecture, inspired by iOS UINavigationController, to deliver native‑like, smooth page transitions in a web environment, addressing back‑button latency, scroll restoration, and lazy‑load image issues with practical React/React‑Router examples.

JavaScriptStackWeb Performance
0 likes · 5 min read
How LINE Manga Achieves Native‑Like Page Transitions with a Page Stack
Java Captain
Java Captain
Oct 11, 2017 · Fundamentals

Understanding the Java Virtual Machine Stack and Bytecode Instructions

This article explains the structure and operation of the JVM stack, including stack frames, local variable tables, operand stacks, slots, and common bytecode instructions, providing code examples and visual aids to help readers grasp how Java bytecode is executed on the stack.

Stack__slots__java
0 likes · 13 min read
Understanding the Java Virtual Machine Stack and Bytecode Instructions
JavaScript
JavaScript
Feb 7, 2017 · Fundamentals

Master JavaScript Stacks: Build, Use, and Apply Stack Operations

This article explains the concept of a stack as a LIFO data structure, shows how to implement a Stack class in JavaScript with essential methods like push, pop, size, empty, peek, and clear, and demonstrates practical usage through recursive and iterative factorial calculations.

Data StructureJavaScriptStack
0 likes · 4 min read
Master JavaScript Stacks: Build, Use, and Apply Stack Operations
DevOps
DevOps
Apr 7, 2016 · Fundamentals

The Story of a Java Class in the JVM

Through a whimsical tale of a class named Account, the article explains Java class loading, the hierarchy of classloaders, bytecode execution, the method area, stack, heap, garbage collection, and debugging, providing an engaging overview of JVM fundamentals.

Garbage CollectionJVMStack
0 likes · 13 min read
The Story of a Java Class in the JVM
21CTO
21CTO
Mar 23, 2016 · Fundamentals

Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL

This article explains the concept of heaps, especially min‑heaps, and demonstrates how PHP's SPL provides ready‑made implementations for stacks, queues, min‑heaps, and fixed‑size arrays with clear code examples.

Data StructuresHeapPHP
0 likes · 3 min read
Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL