Tag

Stack

0 views collected around this technical thread.

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.

C++JavaPython
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
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.

IterationStackalgorithm
0 likes · 7 min read
Simulating Recursion in PHP Using Stacks, Loops, and Goto
Java Tech Enthusiast
Java Tech Enthusiast
Sep 1, 2024 · Fundamentals

Introduction to x86 Assembly Language: Registers, Memory Model, and Stack Operations

This article introduces x86 assembly language, explaining its historical origins, the role of CPU registers such as EAX and ESP, the heap and downward‑growing stack memory models, and demonstrates basic stack‑frame operations like push, call, mov, add, pop, and ret through a simple compiled example.

CPULow-level programmingStack
0 likes · 13 min read
Introduction to x86 Assembly Language: Registers, Memory Model, and Stack Operations
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 ProgrammingOperating SystemStack
0 likes · 5 min read
Understanding Memory Allocation in C
IT Services Circle
IT Services Circle
Apr 28, 2024 · Fundamentals

LeetCode 224 – Basic Calculator: Problem Description, Analysis, and Reference Solution

This article introduces the LeetCode Hard‑level "Basic Calculator" problem, explains its interview background, provides a detailed problem statement with examples, outlines the key algorithmic concepts and solution approach using a stack, and includes a complete Java reference implementation.

Expression EvaluationLeetCodeStack
0 likes · 9 min read
LeetCode 224 – Basic Calculator: Problem Description, Analysis, and Reference Solution
政采云技术
政采云技术
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.

JavaQueueStack
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 CollectionGoPerformance
0 likes · 6 min read
What Are Stack and Heap?
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.

ActivityFLAG_ACTIVITY_NEW_TASKIntent
0 likes · 23 min read
Exploring FLAG_ACTIVITY_NEW_TASK and Activity Stack Validation in Android
政采云技术
政采云技术
Dec 13, 2022 · Frontend Development

Understanding the Shape of JavaScript Code in V8 Memory: Stack, Heap, and Constant Pool

This article explains how JavaScript code is represented in V8's memory, covering primitive types, the roles of the stack, heap, and constant pool, as well as function prototypes, variable hoisting, and garbage collection, with clear examples and diagrams.

Constant PoolFunctionsJavaScript
0 likes · 12 min read
Understanding the Shape of JavaScript Code in V8 Memory: Stack, Heap, and Constant Pool
Top Architect
Top Architect
Jul 30, 2022 · Fundamentals

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

This article explains the JVM memory layout, covering the heap (young and old generations), Metaspace, virtual machine stacks, native method stacks, and the program‑counter register, while describing their roles, configuration parameters and how they interact during garbage collection and method execution.

Garbage CollectionJVMJava
0 likes · 14 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks and Program Counter Register
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 CollectionJVMJava
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 CollectionJVMJava
0 likes · 13 min read
Understanding JVM Memory Layout: Heap, Metaspace, Stacks, and Program Counter
Refining Core Development Skills
Refining Core Development Skills
Apr 1, 2022 · Fundamentals

Stack vs Heap Memory Allocation: Speed Comparison and Implementation Details

This article explains how memory allocation on the stack is faster than on the heap, demonstrates the process with assembly instructions, provides benchmark code comparing allocation speeds, discusses compiler optimizations, and outlines the differences, advantages, and pitfalls of stack and heap memory usage.

C++PerformanceStack
0 likes · 9 min read
Stack vs Heap Memory Allocation: Speed Comparison and Implementation Details
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.

AlgorithmsJavaLinked List
0 likes · 15 min read
Introduction to Data Structures and Algorithms: Basics, Sorting, and Advanced Structures
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.

JVMJavaStack
0 likes · 16 min read
Understanding JVM Memory Layout and Allocation
New Oriental Technology
New Oriental Technology
May 20, 2021 · Fundamentals

Understanding Stacks: Concepts, Common Use Cases, and JavaScript Implementations

This article explains the stack data structure, its LIFO characteristics, typical applications such as bracket matching, expression evaluation, next‑greater‑element problems, browser navigation, and JavaScript execution contexts, and provides clear JavaScript code examples for each scenario.

JavaScriptMonotonic StackStack
0 likes · 12 min read
Understanding Stacks: Concepts, Common Use Cases, and JavaScript Implementations
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.

JVMJavaMetaspace
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.

AlgorithmsComputer ScienceLinked List
0 likes · 12 min read
Quick Introduction to 8 Common Data Structures