Fun game using Stacks
CodeChefOpen on judge ↗
Emma plays a game where she piles up two stacks using cuboids varying in height. Emma's sister belma removes one or more cuboids at the top of the two stacks such that their height remains the same. Find the maximum possible height of the two stacks such that all of the stacks are exactly the same height and return the height. if theres no possibility print "Not possible". ###Input: - F
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start