Given two power towers, find out which one is larger. Power tower is a number of the form : a1 ^ ( a2 ^ (a3 ^ (.... ^an)
You can assume that N <= 100, and each ai <= 100.
I don't have any efficient solution yet.
Source:
A sub-task in ICPC world finals 2012
You can assume that N <= 100, and each ai <= 100.
I don't have any efficient solution yet.
Source:
A sub-task in ICPC world finals 2012