Leetcode 3020. Find the Maximum Number of Elements in Subset
Find the largest subset of nums that can be arranged as a palindrome of successive squarings of some base x — i.e., values equal to x, x^2, x^4, ..., x^k and then mirrored, where k is a power of two. Return the maximum number of elements that can form such a symmetric chain.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.