Equal Stacks, is a HackerRank problem from Stacks subdomain. In this post we will see how we can solve this challenge in Python

Problem Description

You have three stacks of cylinders where each cylinder has the same diameter, but they may vary in height. You can change the height of a stack by removing and discarding its topmost cylinder any number of times.

Find the maximum possible height of the stacks such that all of the stacks are exactly ....

You can find the full details of the problem Equal Stacks at HackerRank

Solution: Please check the equal-stacks.py snippet for the solution.

This solution originally posted at: Github by @srgnk