Tagged articles
8 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Jun 27, 2025 · Fundamentals

How to Solve the Champagne Tower Problem on LeetCode with Linear DP

The article first reflects on ByteDance's expanding English testing policy, then presents LeetCode problem 799 “Champagne Tower”, describing its mechanics and offering a linear‑DP solution with full implementations in Java, C++, Python and TypeScript, along with complexity analysis.

CDPLeetCode
0 likes · 8 min read
How to Solve the Champagne Tower Problem on LeetCode with Linear DP
NiuNiu MaTe
NiuNiu MaTe
Oct 27, 2021 · Fundamentals

Master the House Robber Problem with Dynamic Programming

This article explains the classic House Robber interview question, detailing the problem constraints, illustrating why a naive alternating‑house approach fails, and presenting a clear dynamic‑programming solution with recurrence, base cases, and a concise code example.

DPalgorithmdynamic programming
0 likes · 5 min read
Master the House Robber Problem with Dynamic Programming
AI Code to Success
AI Code to Success
Feb 4, 2020 · Fundamentals

Dynamic Programming Essentials: Concepts, Conditions, and a Fractional Knapsack Demo

This article introduces dynamic programming as an optimization technique from operations research, explains its fundamental concepts, optimality principle, no‑after‑effect property, and overlapping subproblems, outlines the typical problem‑model steps, and demonstrates a practical C++ implementation for solving the fractional knapsack problem.

CDPdynamic programming
0 likes · 10 min read
Dynamic Programming Essentials: Concepts, Conditions, and a Fractional Knapsack Demo