Largest Palindromic Number
Try to solve the Largest Palindromic Number problem.
We'll cover the following
Statement
You are given a string num
 consisting of digits from num
. The resulting palindromic number must not have leading zeros.
Note: You may reorder the digits freely, and you must use at least one digit from theÂ
num
string.
Constraints:
num.length
num
 consists of digits
Example
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.