Uses Path Sum to explain how to define binary-tree subproblems, recursive functions, and base cases.
67 articles
Uses Path Sum to explain how to define binary-tree subproblems, recursive functions, and base cases.
Introduces a two-pointer linked-list traversal framework and applies it to safely reverse a singly linked list.
This article explains, step-by-step, how to implement a lightweight parser from scratch using an expression parsing example, simplifying seemingly complex tasks.
This article explores the network control interface of Android Monkey, demonstrating how to write scripts to precisely inject touch, keypress, and application control events into devices.
This article analyzes Java 8's `default` keyword, revealing how it enables Java to indirectly achieve multiple inheritance and reintroduces the classic diamond problem.
This article analyzes what actually happens when a C++ function returns an object by value, through the lenses of copy construction, move semantics, and Return Value Optimization (RVO).
This article introduces JLine's capabilities, including terminal abstraction, line editing, history, completion, and syntax highlighting, and provides examples for Java command-line applications.
This article introduces how to use GDB command files and batch processing capabilities to automate debugging steps such as setting breakpoints, running, inspecting, and outputting results.
This article provides an in-depth analysis of the OkHttp source code, revealing how it organizes Interceptors through the Chain of Responsibility pattern to elegantly handle network requests.
This article introduces DepView, a tool that analyzes and visualizes Java program call dependencies, helping you quickly untangle complex code.