Problems > Doubling Your Money > Editorial

Doubling Your Money — Solution & Editorial

Back to the Problem

Solve the inequality directly with ceiling division — no loop needed.

Complexity: O(1) or O(log)