UVa 12166 Equilibrium Mobile

AI Translated from Chinese Problem: Luogu UVa 12166 Problem Statement Given a binary tree with depth not exceeding 16, representing a balance scale. Each rod is hung in the center, and the weight of each counterweight is known. What is the minimum number of counterweight weights that need to be modified to balance the scale? — Liu Rujia “Algorithm Competition Introduction Basics” Analysis At first glance, it seems difficult to start with. We can first study what properties a balanced scale has. ...

2023/01/12 · Allen Wu

The Beauty of Data Structures - Binary Tree

Everything looks like a binary tree lately (

2022/11/06 · Allen Wu