The stand answer is actually wrong. This is misleading.
For example, take 60 as input, the maximum should be 3^20 = 3486784401. The standard answer gets a much smaller value.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.